Commit 4ee756ca authored by Christophe Courtaut's avatar Christophe Courtaut

Cosmetics

parent f22165db
......@@ -48,7 +48,7 @@ Media* Library::getClip( const QString& path )
QHash<QUuid, Media*>::iterator it;
QHash<QUuid, Media*>::iterator ite = m_medias.end();
for ( it = m_medias.begin(); it != ite; ++it )
if ( ((Media*)it.value())->getFileInfo()->absoluteFilePath() == path)
if ( ((Media*)it.value())->getFileInfo()->absoluteFilePath() == path )
return it.value();
return NULL;
}
......
......@@ -87,7 +87,7 @@ void MainWindow::setupLibrary()
tr( "Media Library" ),
Qt::AllDockWidgetAreas,
QDockWidget::AllDockWidgetFeatures,
Qt::TopDockWidgetArea );
Qt::LeftDockWidgetArea );
//Connecting GUI and Frontend :
connect( libraryWidget,
......
......@@ -89,7 +89,7 @@ void PreviewWidget::dropEvent( QDropEvent* event )
media = lib->getClip( event->mimeData()->urls()[0].path() );
}
else
media = Library::getInstance()->getClip( QUuid( (const QString& )event->mimeData()->data( "vlmc/uuid" ) ) );
media = Library::getInstance()->getClip( QUuid( ( const QString& )event->mimeData()->data( "vlmc/uuid" ) ) );
media->flushParameters();
m_mediaPlayer->setMedia( media->getVLCMedia() );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment