[vlc-devel] commit: Qt: fix remaining remeber-folder bug. (Jean-Baptiste Kempf )
git version control
git at videolan.org
Thu Jun 25 11:40:43 CEST 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jun 25 00:35:00 2009 +0200| [649a43d0b9de0975bc8772ffc23eaa0426605995] | committer: Jean-Baptiste Kempf
Qt: fix remaining remeber-folder bug.
Close #2851
(cherry picked from commit 084a6247a99e90c1ab66090811f2a96f8c816ed7)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=649a43d0b9de0975bc8772ffc23eaa0426605995
---
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 9db54c8..fcd0bab 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( ";*", " *");
- 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