Commit 649a43d0 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Qt: fix remaining remeber-folder bug.



Close #2851
(cherry picked from commit 084a6247a99e90c1ab66090811f2a96f8c816ed7)
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent e5983d30
...@@ -389,10 +389,14 @@ QStringList DialogsProvider::showSimpleOpen( QString help, ...@@ -389,10 +389,14 @@ QStringList DialogsProvider::showSimpleOpen( QString help,
ADD_FILTER_ALL( fileTypes ); ADD_FILTER_ALL( fileTypes );
fileTypes.replace( ";*", " *"); fileTypes.replace( ";*", " *");
return QFileDialog::getOpenFileNames( NULL, QStringList files = QFileDialog::getOpenFileNames( NULL,
help.isEmpty() ? qtr(I_OP_SEL_FILES ) : help, help.isEmpty() ? qtr(I_OP_SEL_FILES ) : help,
path.isEmpty() ? p_intf->p_sys->filepath : path, path.isEmpty() ? p_intf->p_sys->filepath : path,
fileTypes ); fileTypes );
if( !files.isEmpty() ) savedirpathFromFile( files.last() );
return files;
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment