From: Jean-Baptiste Kempf Date: Wed, 4 Aug 2010 16:12:16 +0000 (+0200) Subject: Qt: allow to select inexistent files from Prefs X-Git-Tag: 1.2.0-pre1~5555 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=0e3e62f3582ab6ee45462dc7b39fabab935a5e68;p=vlc 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 --- 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 ) );