[vlc-commits] commit: Qt: allow to select inexistent files from Prefs ( Jean-Baptiste Kempf )

git at videolan.org git at videolan.org
Wed Aug 4 18:33:29 CEST 2010


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Aug  4 18:12:16 2010 +0200| [0e3e62f3582ab6ee45462dc7b39fabab935a5e68] | committer: Jean-Baptiste Kempf 

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0e3e62f3582ab6ee45462dc7b39fabab935a5e68
---

 modules/gui/qt4/components/preferences_widgets.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp
index 5508ae6..56c68f2 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 ) );



More information about the vlc-commits mailing list