Skip to content

Commit

Permalink
adjust MainWindow initialize order
Browse files Browse the repository at this point in the history
  • Loading branch information
royqh1979 committed Nov 30, 2024
1 parent e6a9ebf commit 1fe0062
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions RedPandaIDE/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ static int findTabIndex(QTabWidget* tabWidget , QWidget* w) {
MainWindow* pMainWindow;

MainWindow::MainWindow(const QStringList& filesToOpenAfterStart, QWidget *parent)
: mFilesToOpenAfterStart{filesToOpenAfterStart},
QMainWindow{parent},
: QMainWindow{parent},
ui{new Ui::MainWindow},
mFullInitialized{false},
mSearchInFilesDialog{nullptr},
Expand All @@ -134,8 +133,8 @@ MainWindow::MainWindow(const QStringList& filesToOpenAfterStart, QWidget *parent
mClosingAll{false},
mOpenningFiles{false},
mSystemTurnedOff{false},
mCompileIssuesState{CompileIssuesState::None}

mCompileIssuesState{CompileIssuesState::None},
mFilesToOpenAfterStart{filesToOpenAfterStart}
{
ui->setupUi(this);
ui->cbProblemCaseValidateType->blockSignals(true);
Expand Down

0 comments on commit 1fe0062

Please sign in to comment.