Save category changes for custom tools in their xml.

This commit is contained in:
con
2011-02-10 10:03:46 +01:00
parent 6f991cb637
commit c422786b02
4 changed files with 8 additions and 3 deletions

View File

@@ -169,6 +169,10 @@ void ToolSettings::apply()
foreach (ExternalTool *tool, it.value()) {
ExternalTool *toolToAdd = 0;
if (ExternalTool *originalTool = originalTools.take(tool->id())) {
// check if it has different category and is custom tool
if (tool->displayCategory() != it.key() && !tool->preset()) {
tool->setDisplayCategory(it.key());
}
// check if the tool has changed
if ((*originalTool) == (*tool)) {
toolToAdd = originalTool;