forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.0' into 4.1
Change-Id: If651b6a5fddcdec5ce62a195448a30152a01fca6
This commit is contained in:
@@ -179,6 +179,8 @@ void MacroManager::MacroManagerPrivate::removeMacro(const QString &name)
|
|||||||
|
|
||||||
// Remove macro from the map
|
// Remove macro from the map
|
||||||
Macro *macro = macros.take(name);
|
Macro *macro = macros.take(name);
|
||||||
|
if (macro == currentMacro)
|
||||||
|
currentMacro = 0;
|
||||||
delete macro;
|
delete macro;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user