Commit 38abb728 authored by mae's avatar mae
Browse files

Use current file path (not dir path) for open file

This makes it possible to open a pro-file with the locator,
then doing Ctrl+O Enter to load the project.
parent 3c5ae375
......@@ -1009,7 +1009,7 @@ QString FileManager::currentFile() const
QString FileManager::fileDialogInitialDirectory() const
if (!d->m_currentFile.isEmpty())
return QFileInfo(d->m_currentFile).absolutePath();
return QFileInfo(d->m_currentFile).absoluteFilePath();
return d->m_lastVisitedDirectory;
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