if (FormWindowManager *manager = qobject_cast<FormWindowManager*> (core()->formWindowManager())) { m_commandHistory = new QUndoStack(this); manager->undoGroup()->addStack(m_commandHistory); }
m_activeFormWindow->commandHistory()->setActive();