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

Qt: fix remaining remeber-folder bug.

Close #2851
(cherry picked from commit 084a6247)
Signed-off-by: default 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