summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/buildstep.cpp
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2020-09-24 17:29:46 +0200
committerhjk <hjk@qt.io>2020-10-02 13:18:45 +0000
commit591e93316d2a3bdd6b8080b4a3af06c96c80f14c (patch)
tree16c8366208d1b2c9922f53a90afb854f779bafa6 /src/plugins/projectexplorer/buildstep.cpp
parent60ea7f826d63058d46680e0bc8f6f4ea09f7747f (diff)
downloadqt-creator-591e93316d2a3bdd6b8080b4a3af06c96c80f14c.tar.gz
Consolidate build/deploystep default display name handling
Use the display name from the factory as default, override if needed. Change-Id: I03519c998432fea4120b0de8b2fc2686644635f2 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/buildstep.cpp')
-rw-r--r--src/plugins/projectexplorer/buildstep.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/buildstep.cpp b/src/plugins/projectexplorer/buildstep.cpp
index 6fb97aa376..eb566cb348 100644
--- a/src/plugins/projectexplorer/buildstep.cpp
+++ b/src/plugins/projectexplorer/buildstep.cpp
@@ -467,12 +467,14 @@ Utils::Id BuildStepFactory::stepId() const
BuildStep *BuildStepFactory::create(BuildStepList *parent)
{
- return m_info.creator(parent);
+ BuildStep *step = m_info.creator(parent);
+ step->setDefaultDisplayName(m_info.displayName);
+ return step;
}
BuildStep *BuildStepFactory::restore(BuildStepList *parent, const QVariantMap &map)
{
- BuildStep *bs = m_info.creator(parent);
+ BuildStep *bs = create(parent);
if (!bs)
return nullptr;
if (!bs->fromMap(map)) {