Commit 98575e68 authored by con's avatar con
Browse files

Actually delete custom tools that were deleted.

parent 50cdf917
......@@ -36,6 +36,8 @@
#include "externaltool.h"
#include "coreconstants.h"
#include <utils/qtcassert.h>
#include <QtCore/QCoreApplication>
#include <QtCore/QFileInfo>
#include <QtCore/QDir>
......@@ -227,6 +229,13 @@ void ToolSettings::apply()
if (!items.isEmpty())
resultMap.insert(it.key(), items);
}
// Remove tools that have been deleted from the settings (and are no preset)
foreach (ExternalTool *tool, originalTools) {
QTC_ASSERT(!tool->preset(), continue);
// TODO error handling
QFile::remove(tool->fileName());
}
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