]> git.sesse.net Git - vlc/commitdiff
Qt: don't open empty files.
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 22 Mar 2009 20:17:24 +0000 (21:17 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 24 Mar 2009 23:05:40 +0000 (00:05 +0100)
modules/gui/qt4/components/open_panels.cpp

index e22d4b297e55aef0afa483d41cc3d5da13d52c82..8c338f37651d0ac4a5b8e10321c914c5cd11d161 100644 (file)
@@ -189,7 +189,10 @@ void FileOpenPanel::updateMRL()
     QString mrl;
 
     for( int i = 0; i < ui.fileListWidg->count(); i++ )
-        fileList << ui.fileListWidg->item( i )->text();
+    {
+        if( !ui.fileListWidg->item( i )->text().isEmpty() )
+            fileList << ui.fileListWidg->item( i )->text();
+    }
 
     if( ui.subCheckBox->isChecked() &&  !ui.subInput->text().isEmpty() ) {
         mrl.append( " :sub-file=" + colon_escape( ui.subInput->text() ) );