diff --git a/modules/gui/qt/dialogs_provider.cpp b/modules/gui/qt/dialogs_provider.cpp index 1e26f1f71e92613d37d7e0fa175725038594604f..deca7ae0c82cdb228187ec27be42e232d41b5e78 100644 --- a/modules/gui/qt/dialogs_provider.cpp +++ b/modules/gui/qt/dialogs_provider.cpp @@ -111,7 +111,7 @@ DialogsProvider::~DialogsProvider() delete miscPopupMenu; } -QStringList DialogsProvider::getOpenURL( intf_thread_t* p_intf, QWidget *parent, +QStringList DialogsProvider::getOpenURL( QWidget *parent, const QString &caption, const QString &dir, const QString &filter, @@ -395,9 +395,8 @@ void DialogsProvider::openFileGenericDialog( intf_dialog_args_t *p_arg ) } else /* non-save mode */ { - QStringList urls = getOpenURL( p_intf, NULL, - qfu( p_arg->psz_title ), p_intf->p_sys->filepath, - extensions ); + QStringList urls = getOpenURL( NULL, qfu( p_arg->psz_title ), + p_intf->p_sys->filepath, extensions ); p_arg->i_results = urls.count(); p_arg->psz_results = (char **)malloc( p_arg->i_results * sizeof( char * ) ); i = 0; @@ -494,7 +493,7 @@ QStringList DialogsProvider::showSimpleOpen( const QString& help, ADD_EXT_FILTER( fileTypes, EXTENSIONS_ALL ); fileTypes.replace( ";*", " *"); - QStringList urls = getOpenURL( p_intf, NULL, + QStringList urls = getOpenURL( NULL, help.isEmpty() ? qtr(I_OP_SEL_FILES ) : help, path.isEmpty() ? p_intf->p_sys->filepath : path, fileTypes ); diff --git a/modules/gui/qt/dialogs_provider.hpp b/modules/gui/qt/dialogs_provider.hpp index 13862edbdb5fdfef1e1fed36e3e6c564106e6fad..399ac5322f09af73c50e1ba4b338c1ef0389d3da 100644 --- a/modules/gui/qt/dialogs_provider.hpp +++ b/modules/gui/qt/dialogs_provider.hpp @@ -91,7 +91,7 @@ public: const QString& path = QString() ); bool isDying() { return b_isDying; } static QString getDirectoryDialog( intf_thread_t *p_intf); - static QStringList getOpenURL(intf_thread_t* p_intf, QWidget *parent = NULL, + static QStringList getOpenURL(QWidget *parent = NULL, const QString &caption = QString(), const QString &dir = QString(), const QString &filter = QString(),