aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOrgad Shaneh <[email protected]>2025-10-02 23:46:27 +0300
committerOrgad Shaneh <[email protected]>2025-10-13 09:56:12 +0000
commit9d8362f481e5f541b81257dbbb4d34d8a1d227e0 (patch)
tree66f8019ffeffe7c4788cfcb00de1df262237e2ed
parent8dc8eb584c134bccb602bc6bf97f2413b9686e3d (diff)
ProjectExplorer: Check "Shadow build" when cloning in-source build
Shadow build was already applied for cloned configurations, but that was not reflected in the GUI checkbox. Check it to make this visible. Task-number: QTCREATORBUG-33446 Change-Id: I6a3f00fb04bf6aa75f5302ec42f44083034aec5a Reviewed-by: Christian Kandeler <[email protected]>
-rw-r--r--src/plugins/projectexplorer/buildaspects.cpp7
-rw-r--r--src/plugins/projectexplorer/buildaspects.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/buildaspects.cpp b/src/plugins/projectexplorer/buildaspects.cpp
index 3a7f61b4dd3..1ea97d16a60 100644
--- a/src/plugins/projectexplorer/buildaspects.cpp
+++ b/src/plugins/projectexplorer/buildaspects.cpp
@@ -154,6 +154,13 @@ void BuildDirectoryAspect::addToLayoutImpl(Layouting::Layout &parent)
pathChooser()->setAllowPathFromDevice(false);
}
+void BuildDirectoryAspect::announceChanges(Changes changes, Announcement howToAnnounce)
+{
+ if (changes.bufferFromInternal)
+ setChecked(d->sourceDir != expandedValue());
+ FilePathAspect::announceChanges(changes, howToAnnounce);
+}
+
FilePath BuildDirectoryAspect::fixupDir(const FilePath &dir)
{
if (!dir.isLocal())
diff --git a/src/plugins/projectexplorer/buildaspects.h b/src/plugins/projectexplorer/buildaspects.h
index 0c022f0a691..85b06d34f67 100644
--- a/src/plugins/projectexplorer/buildaspects.h
+++ b/src/plugins/projectexplorer/buildaspects.h
@@ -24,6 +24,7 @@ public:
void setProblem(const QString &description);
void addToLayoutImpl(Layouting::Layout &parent) override;
+ void announceChanges(Changes changes, Announcement howToAnnounce) override;
static Utils::FilePath fixupDir(const Utils::FilePath &dir);