Commit 1787a854 authored by mae's avatar mae
Browse files

Use current file path for getOpenFileNames

parent 5c8ce80e
......@@ -745,7 +745,11 @@ QStringList FileManager::getOpenFileNames(const QString &filters,
const QString pathIn,
QString *selectedFilter)
{
const QString path = pathIn.isEmpty() ? fileDialogInitialDirectory() : pathIn;
QString path = pathIn;
if (path.isEmpty()) {
if (!d->m_currentFile.isEmpty())
path = QFileInfo(d->m_currentFile).absoluteFilePath();
}
const QStringList files = QFileDialog::getOpenFileNames(d->m_mainWindow,
tr("Open File"),
path, filters,
......
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