Commit d61e55c2 authored by Tobias Hunger's avatar Tobias Hunger

Make sure cloned kits are considered to be manual

Task-number: QTCREATORBUG-8231

Change-Id: Ic5f4cc876fef1a06e877702a272230fc7f44b1f4
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 7c9c1924
......@@ -43,6 +43,7 @@ namespace ProjectExplorer {
namespace Internal {
class KitManagerPrivate;
class KitModel;
class KitPrivate;
} // namespace Internal
......@@ -108,6 +109,7 @@ private:
Internal::KitPrivate *d;
friend class KitManager;
friend class Internal::KitModel; // needed for setAutoDetected() when cloning kits
};
class KitGuard
......
......@@ -323,6 +323,7 @@ Kit *KitModel::markForAddition(Kit *baseKit)
if (baseKit) {
Kit *k = node->widget->workingCopy();
k->copyFrom(baseKit);
k->setAutoDetected(false); // Make sure we have a manual kit!
k->setDisplayName(tr("Clone of %1").arg(k->displayName()));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment