Skip to content
Snippets Groups Projects
Commit 9a52e1dd authored by con's avatar con
Browse files

Some sanity fixes.

parent 69c920c6
No related branches found
No related tags found
No related merge requests found
......@@ -144,7 +144,7 @@ static QString findUnusedId(const QString &proposal, const QMap<QString, QList<E
while (!found && it.hasNext()) {
it.next();
foreach (ExternalTool *tool, it.value()) {
if (tool->id() == proposal) {
if (tool->id() == result) {
found = true;
break;
}
......@@ -216,7 +216,8 @@ void ToolSettings::apply()
}
items.append(toolToAdd);
}
resultMap.insert(it.key(), items);
if (!items.isEmpty())
resultMap.insert(it.key(), items);
}
ExternalToolManager::instance()->setToolsByCategory(resultMap);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment