diff options
author | mae <qt-info@nokia.com> | 2010-07-07 11:02:32 +0200 |
---|---|---|
committer | mae <qt-info@nokia.com> | 2010-07-07 11:13:42 +0200 |
commit | 38abb7285c2f81719ec8658982e038b590a7c212 (patch) | |
tree | a3a6b3c0ad25535e9179783aab589e4030468494 /src | |
parent | 3c5ae375bc8150a8069bd57b6ee063c75a4c192a (diff) | |
download | qt-creator-38abb7285c2f81719ec8658982e038b590a7c212.tar.gz |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/coreplugin/filemanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/coreplugin/filemanager.cpp b/src/plugins/coreplugin/filemanager.cpp index 072d4ae74a..de29e822b7 100644 --- a/src/plugins/coreplugin/filemanager.cpp +++ b/src/plugins/coreplugin/filemanager.cpp @@ -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; } |