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

git at videolan.org git at videolan.org
Wed Aug 11 19:23:21 CEST 2010


vlc/vlc-1.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Aug  4 18:12:16 2010 +0200| [4f2eb277081a8212fc2d4b74d9ef6db892af945a] | 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
(cherry picked from commit 0e3e62f3582ab6ee45462dc7b39fabab935a5e68)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=4f2eb277081a8212fc2d4b74d9ef6db892af945a
---

 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 e232f5d..3338e55 100644
--- a/modules/gui/qt4/components/preferences_widgets.cpp
+++ b/modules/gui/qt4/components/preferences_widgets.cpp
@@ -340,7 +340,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