]> git.sesse.net Git - vlc/commitdiff
Qt: allow to select inexistent files from Prefs
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 4 Aug 2010 16:12:16 +0000 (18:12 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 4 Aug 2010 16:18:09 +0000 (18:18 +0200)
 - 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

index 5508ae664aa771a0eb795c3c5e0bd2b363f7858f..56c68f29027b6d0ae4a0c0483c8b8c1e5d783de9 100644 (file)
@@ -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 ) );