forked from qt-creator/qt-creator
Fix %{CurrentProject:Path}
Was returning the same as %{CurrentProject:FilePath} Task-number: QTCREATORBUG-4533 Reviewed-by: Robert Loehning
This commit is contained in:
@@ -1050,7 +1050,7 @@ void ProjectExplorerPlugin::updateVariable(const QString &variable)
|
|||||||
} else if (variable == QLatin1String(kCurrentProjectPath)) {
|
} else if (variable == QLatin1String(kCurrentProjectPath)) {
|
||||||
if (currentProject() && currentProject()->file()) {
|
if (currentProject() && currentProject()->file()) {
|
||||||
Core::VariableManager::instance()->insert(variable,
|
Core::VariableManager::instance()->insert(variable,
|
||||||
QFileInfo(currentProject()->file()->fileName()).filePath());
|
QFileInfo(currentProject()->file()->fileName()).path());
|
||||||
} else {
|
} else {
|
||||||
Core::VariableManager::instance()->remove(variable);
|
Core::VariableManager::instance()->remove(variable);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user