[vlc-commits] Qt: Open: Don't allow next step if item is missing.

Francois Cartegnie git at videolan.org
Tue Apr 16 17:25:59 CEST 2013


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Apr 16 17:21:08 2013 +0200| [aa125a246b82b8fc73eb6ead0af744af21693904] | committer: Francois Cartegnie

Qt: Open: Don't allow next step if item is missing.

Otherwise it confusingly closes silently

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aa125a246b82b8fc73eb6ead0af744af21693904
---

 modules/gui/qt4/dialogs/open.cpp |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/gui/qt4/dialogs/open.cpp b/modules/gui/qt4/dialogs/open.cpp
index 087d67e..0c43fc3 100644
--- a/modules/gui/qt4/dialogs/open.cpp
+++ b/modules/gui/qt4/dialogs/open.cpp
@@ -443,6 +443,9 @@ void OpenDialog::updateMRL() {
     }
     ui.advancedLineInput->setText( mrl );
     ui.mrlLine->setText( itemsMRL.join( " " ) );
+    /* Only allow action without valid items */
+    playButton->setEnabled( !itemsMRL.isEmpty() );
+    selectButton->setEnabled( !itemsMRL.isEmpty() );
 }
 
 /* Change the caching combobox */



More information about the vlc-commits mailing list