diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index cbc5dfc3593..bc95a6e52fb 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -1050,7 +1050,7 @@ void ProjectExplorerPlugin::updateVariable(const QString &variable) } else if (variable == QLatin1String(kCurrentProjectPath)) { if (currentProject() && currentProject()->file()) { Core::VariableManager::instance()->insert(variable, - QFileInfo(currentProject()->file()->fileName()).filePath()); + QFileInfo(currentProject()->file()->fileName()).path()); } else { Core::VariableManager::instance()->remove(variable); }