From 0e3e62f3582ab6ee45462dc7b39fabab935a5e68 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Wed, 4 Aug 2010 18:12:16 +0200 Subject: [PATCH] Qt: allow to select inexistent files from Prefs - for some reason, this worked on Linux (?!?) - for some other reason, there doesn't seem to be 2 different modes for add_file Close #4004 --- modules/gui/qt4/components/preferences_widgets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp index 5508ae664a..56c68f2902 100644 --- a/modules/gui/qt4/components/preferences_widgets.cpp +++ b/modules/gui/qt4/components/preferences_widgets.cpp @@ -341,7 +341,7 @@ FileConfigControl::FileConfigControl( vlc_object_t *_p_this, void FileConfigControl::updateField() { - QString file = QFileDialog::getOpenFileName( NULL, + QString file = QFileDialog::getSaveFileName( NULL, qtr( "Select File" ), QVLCUserDir( VLC_HOME_DIR ) ); if( file.isNull() ) return; text->setText( toNativeSeparators( file ) ); -- 2.39.2