Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
98575e68
Commit
98575e68
authored
Feb 21, 2011
by
con
Browse files
Actually delete custom tools that were deleted.
parent
50cdf917
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/toolsettings.cpp
View file @
98575e68
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment