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:
hjk
2020-06-17 10:23:32 +02:00
parent 2b36770d07
commit c7db952648

View File

@@ -131,7 +131,6 @@ IMode::IMode(QObject *parent) : IContext(parent)
IMode::~IMode()
{
ModeManager::instance()->removeMode(this);
delete m_menu;
}
void IMode::setEnabled(bool enabled)