Commit 9a52e1dd authored by con's avatar con
Browse files

Some sanity fixes.

parent 69c920c6
...@@ -144,7 +144,7 @@ static QString findUnusedId(const QString &proposal, const QMap<QString, QList<E ...@@ -144,7 +144,7 @@ static QString findUnusedId(const QString &proposal, const QMap<QString, QList<E
while (!found && it.hasNext()) { while (!found && it.hasNext()) {
it.next(); it.next();
foreach (ExternalTool *tool, it.value()) { foreach (ExternalTool *tool, it.value()) {
if (tool->id() == proposal) { if (tool->id() == result) {
found = true; found = true;
break; break;
} }
...@@ -216,7 +216,8 @@ void ToolSettings::apply() ...@@ -216,7 +216,8 @@ void ToolSettings::apply()
} }
items.append(toolToAdd); items.append(toolToAdd);
} }
resultMap.insert(it.key(), items); if (!items.isEmpty())
resultMap.insert(it.key(), items);
} }
ExternalToolManager::instance()->setToolsByCategory(resultMap); ExternalToolManager::instance()->setToolsByCategory(resultMap);
} }
......
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