forked from qt-creator/qt-creator
Core: Adapt IMode::m_menu handling to documentation
This fixes a double delete of the new debug mode menu. Change-Id: I633ab9eb319554d4fc2da158b83f6611ab10ce45 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -131,7 +131,6 @@ IMode::IMode(QObject *parent) : IContext(parent)
|
|||||||
IMode::~IMode()
|
IMode::~IMode()
|
||||||
{
|
{
|
||||||
ModeManager::instance()->removeMode(this);
|
ModeManager::instance()->removeMode(this);
|
||||||
delete m_menu;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void IMode::setEnabled(bool enabled)
|
void IMode::setEnabled(bool enabled)
|
||||||
|
Reference in New Issue
Block a user