Mon, 04 Jul 2022 15:37:22 +0300
Only enable the text editor when having a model open
src/main.cpp | file | annotate | diff | comparison | revisions | |
src/mainwindow.ui | file | annotate | diff | comparison | revisions |
--- a/src/main.cpp Mon Jul 04 01:20:36 2022 +0300 +++ b/src/main.cpp Mon Jul 04 15:37:22 2022 +0300 @@ -723,6 +723,7 @@ else { checkEditingModeAction(EditingMode::SelectMode); } + ui.modelEdit->setEnabled(modelSubWindow != nullptr); updateTitle(); }); ui.messageLog->setModel(&messageLog);
--- a/src/mainwindow.ui Mon Jul 04 01:20:36 2022 +0300 +++ b/src/mainwindow.ui Mon Jul 04 15:37:22 2022 +0300 @@ -217,7 +217,11 @@ <widget class="QWidget" name="dockWidgetContents_3"> <layout class="QVBoxLayout" name="verticalLayout_4"> <item> - <widget class="QPlainTextEdit" name="modelEdit"/> + <widget class="QPlainTextEdit" name="modelEdit"> + <property name="enabled"> + <bool>false</bool> + </property> + </widget> </item> </layout> </widget>