721 } |
721 } |
722 } |
722 } |
723 else { |
723 else { |
724 checkEditingModeAction(EditingMode::SelectMode); |
724 checkEditingModeAction(EditingMode::SelectMode); |
725 } |
725 } |
|
726 ui.modelEdit->setEnabled(modelSubWindow != nullptr); |
726 updateTitle(); |
727 updateTitle(); |
727 }); |
728 }); |
728 ui.messageLog->setModel(&messageLog); |
729 ui.messageLog->setModel(&messageLog); |
729 QObject::connect(ui.actionAboutQt, &QAction::triggered, &app, &QApplication::aboutQt); |
730 QObject::connect(ui.actionAboutQt, &QAction::triggered, &app, &QApplication::aboutQt); |
730 QObject::connect(&documents, &DocumentManager::message, &messageLog, &MessageLog::addMessage); |
731 QObject::connect(&documents, &DocumentManager::message, &messageLog, &MessageLog::addMessage); |