Commit 91b3042c authored by David Schulz's avatar David Schulz Committed by Christian Stenger

Macros: Check and reset currentMacro pointer after deletion

Task-number: QTCREATORBUG-16933
Change-Id: Ib55d5dd4b0478b655d6cb31f28c8ceb38159912f
Reviewed-by: Christian Stenger's avatarChristian Stenger <>
parent e84abe3a
......@@ -183,6 +183,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;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment