[vlc-devel] commit: Qt: fix remaining remeber-folder bug. (Jean-Baptiste Kempf )
git version control
git at videolan.org
Thu Jun 25 00:37:13 CEST 2009
vlc | branch: 1.0-bugfix | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jun 25 00:35:00 2009 +0200| [084a6247a99e90c1ab66090811f2a96f8c816ed7] | committer: Jean-Baptiste Kempf
Qt: fix remaining remeber-folder bug.
Close #2851
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=084a6247a99e90c1ab66090811f2a96f8c816ed7
---
modules/gui/qt4/dialogs_provider.cpp | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/dialogs_provider.cpp b/modules/gui/qt4/dialogs_provider.cpp
index 9dbf3ca..c09c7ca 100644
--- a/modules/gui/qt4/dialogs_provider.cpp
+++ b/modules/gui/qt4/dialogs_provider.cpp
@@ -389,10 +389,14 @@ QStringList DialogsProvider::showSimpleOpen( QString help,
ADD_FILTER_ALL( fileTypes );
fileTypes.replace(QString(";*"), QString(" *"));
- return QFileDialog::getOpenFileNames( NULL,
+ QStringList files = QFileDialog::getOpenFileNames( NULL,
help.isEmpty() ? qtr(I_OP_SEL_FILES ) : help,
path.isEmpty() ? p_intf->p_sys->filepath : path,
fileTypes );
+
+ if( !files.isEmpty() ) savedirpathFromFile( files.last() );
+
+ return files;
}
/**
More information about the vlc-devel
mailing list