Commit bc012ec7 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Kits: Allow autodetected kits to become default



Allow autodetected kits to be set as default kit. That was not
possible via the UI so far.

Change-Id: I6dac210d8390e6ab25cf8f022e5ae8293115cacf
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 1678b5e5
......@@ -279,7 +279,9 @@ void KitModel::apply()
}
// Update kits:
foreach (KitNode *n, m_manualRoot->childNodes) {
nodes = m_autoRoot->childNodes; // These can be dirty due to being made default!
nodes.append(m_manualRoot->childNodes);
foreach (KitNode *n, nodes) {
Q_ASSERT(n);
Q_ASSERT(n->widget);
if (n->widget->isDirty()) {
......
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