summaryrefslogtreecommitdiff
path: root/src/plugins/macros/macromanager.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2016-10-05 15:28:04 +0200
committerEike Ziller <eike.ziller@qt.io>2016-10-05 15:28:04 +0200
commit90cf4487a52cbff8389be85b8926afba24d75918 (patch)
treed2226523d433f6531ea9aa28c512a6ab454c1f13 /src/plugins/macros/macromanager.cpp
parentf036877a0d04681e60cbc010995a8a68c14f89c0 (diff)
parent8902fbc62c80896c6fc9316b90b2f6d0cced7491 (diff)
downloadqt-creator-90cf4487a52cbff8389be85b8926afba24d75918.tar.gz
Merge remote-tracking branch 'origin/4.1'
Conflicts: src/plugins/autotest/qtest/qttestoutputreader.cpp Change-Id: I4b323f2f3041d015fa04b9a25ec925f3b3e2411f
Diffstat (limited to 'src/plugins/macros/macromanager.cpp')
-rw-r--r--src/plugins/macros/macromanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/macros/macromanager.cpp b/src/plugins/macros/macromanager.cpp
index fb758cc025..cfda1684ff 100644
--- a/src/plugins/macros/macromanager.cpp
+++ b/src/plugins/macros/macromanager.cpp
@@ -178,6 +178,8 @@ void MacroManager::MacroManagerPrivate::removeMacro(const QString &name)
// Remove macro from the map
Macro *macro = macros.take(name);
+ if (macro == currentMacro)
+ currentMacro = 0;
delete macro;
}