From dc1d7c5fe2880240b0fc6fc0a079156540f72638 Mon Sep 17 00:00:00 2001 From: dismine Date: Mon, 19 May 2014 21:03:12 +0300 Subject: [PATCH] Make xml editor disable on the start. --HG-- branch : XML Editor --- src/app/mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/mainwindow.cpp b/src/app/mainwindow.cpp index 93d18d6bc..356ab269e 100644 --- a/src/app/mainwindow.cpp +++ b/src/app/mainwindow.cpp @@ -1089,6 +1089,8 @@ void MainWindow::SetEnableWidgets(bool enable) } ui->actionTable->setEnabled(enable); ui->actionHistory->setEnabled(enable); + ui->actionPattern_properties->setEnabled(enable); + ui->actionEdit_pattern_code->setEnabled(enable); } //--------------------------------------------------------------------------------------------------------------------- @@ -1368,7 +1370,7 @@ void MainWindow::CreateActions() connect(ui->actionPattern_properties, &QAction::triggered, this, &MainWindow::PatternProperties); ui->actionPattern_properties->setEnabled(false); connect(ui->actionEdit_pattern_code, &QAction::triggered, this, &MainWindow::EditPatternCode); - //ui->actionEdit_pattern_code->setEnabled(false); + ui->actionEdit_pattern_code->setEnabled(false); //Actions for recent files loaded by a main window application. for (int i = 0; i < MaxRecentFiles; ++i)