[vlc-devel] commit: Qt: don't open empty files. (Jean-Baptiste Kempf )
git version control
git at videolan.org
Wed Mar 25 00:05:49 CET 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Mar 22 21:17:24 2009 +0100| [be7fb9887eb1822a6be22c01d1d28bdd9daf051a] | committer: Jean-Baptiste Kempf
Qt: don't open empty files.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=be7fb9887eb1822a6be22c01d1d28bdd9daf051a
---
modules/gui/qt4/components/open_panels.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/components/open_panels.cpp b/modules/gui/qt4/components/open_panels.cpp
index e22d4b2..8c338f3 100644
--- a/modules/gui/qt4/components/open_panels.cpp
+++ b/modules/gui/qt4/components/open_panels.cpp
@@ -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() ) );
More information about the vlc-devel
mailing list