[vlc-devel] [PATCH 09/19] qt: make dialogsprovider simpleOpenDialog start playing optionally

Fatih Uzunoglu fuzun54 at outlook.com
Wed Aug 12 23:17:16 CEST 2020


---
 modules/gui/qt/dialogs/dialogs_provider.cpp | 4 ++--
 modules/gui/qt/dialogs/dialogs_provider.hpp | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt/dialogs/dialogs_provider.cpp b/modules/gui/qt/dialogs/dialogs_provider.cpp
index c985615490..d1df96cb61 100644
--- a/modules/gui/qt/dialogs/dialogs_provider.cpp
+++ b/modules/gui/qt/dialogs/dialogs_provider.cpp
@@ -486,11 +486,11 @@ QStringList DialogsProvider::showSimpleOpen( const QString& help,
     return res;
 }
 
-void DialogsProvider::simpleOpenDialog()
+void DialogsProvider::simpleOpenDialog(bool start)
 {
     QStringList urls = DialogsProvider::showSimpleOpen();
 
-    bool first = true;
+    bool first = start;
     urls.sort();
     foreach( const QString &url, urls )
     {
diff --git a/modules/gui/qt/dialogs/dialogs_provider.hpp b/modules/gui/qt/dialogs/dialogs_provider.hpp
index c94e41c5d0..fb53428ca1 100644
--- a/modules/gui/qt/dialogs/dialogs_provider.hpp
+++ b/modules/gui/qt/dialogs/dialogs_provider.hpp
@@ -144,7 +144,7 @@ public slots:
 
     void openFileGenericDialog( intf_dialog_args_t * );
 
-    void simpleOpenDialog();
+    void simpleOpenDialog( bool start = true );
 
     void openDialog();
     void openDiscDialog();
-- 
2.25.1



More information about the vlc-devel mailing list