Some sanity fixes.

This commit is contained in:
con
2011-02-02 17:04:30 +01:00
parent 69c920c6ad
commit 9a52e1dd63

View File

@@ -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);
}