forked from qt-creator/qt-creator
ProjectExplorer: Translate empty shadow directory to source directory
... on recovery, just like it is done when checking the shadow build checkbox. When a pro.shared file has empty build directories (because having a path doesn't make much sense for shared files), the directory remained empty in the UI, and the shadow build checkbox was checked. Change-Id: I3930ecd3c3747a8793ae4eea20c3c0d92b0b5848 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
2798c11d1d
commit
b56c872b27
@@ -106,6 +106,8 @@ void BuildDirectoryAspect::fromMap(const QVariantMap &map)
|
|||||||
if (!d->sourceDir.isEmpty()) {
|
if (!d->sourceDir.isEmpty()) {
|
||||||
d->savedShadowBuildDir = FilePath::fromString(map.value(settingsKey() + ".shadowDir")
|
d->savedShadowBuildDir = FilePath::fromString(map.value(settingsKey() + ".shadowDir")
|
||||||
.toString());
|
.toString());
|
||||||
|
if (d->savedShadowBuildDir.isEmpty())
|
||||||
|
setFilePath(d->sourceDir);
|
||||||
setChecked(d->sourceDir != filePath());
|
setChecked(d->sourceDir != filePath());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user