diff options
author | Eike Ziller <eike.ziller@qt.io> | 2016-10-05 15:28:04 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2016-10-05 15:28:04 +0200 |
commit | 90cf4487a52cbff8389be85b8926afba24d75918 (patch) | |
tree | d2226523d433f6531ea9aa28c512a6ab454c1f13 /src/plugins/macros/macromanager.cpp | |
parent | f036877a0d04681e60cbc010995a8a68c14f89c0 (diff) | |
parent | 8902fbc62c80896c6fc9316b90b2f6d0cced7491 (diff) | |
download | qt-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.cpp | 2 |
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; } |