diff --git a/src/core/MainWindow.cpp b/src/core/MainWindow.cpp index d3420807..6616436d 100644 --- a/src/core/MainWindow.cpp +++ b/src/core/MainWindow.cpp @@ -117,6 +117,8 @@ MainWindow::MainWindow(QWidget *parent) : panelLock = false; tabsOnTop = false; configuration = Config(); + + initUI(); } MainWindow::~MainWindow() @@ -519,7 +521,6 @@ void MainWindow::openProject(const QString &project_name) core->openProject(project_name); - initUI(); finalizeOpen(); } diff --git a/src/core/MainWindow.h b/src/core/MainWindow.h index 969514a2..acae77ef 100644 --- a/src/core/MainWindow.h +++ b/src/core/MainWindow.h @@ -71,8 +71,6 @@ public: void closeNewFileDialog(); void openProject(const QString &project_name); - void initUI(); - /** * @param quit whether to show destructive button in dialog * @return if quit is true, false if the application should not close @@ -258,6 +256,7 @@ private: QDockWidget *breakpointDock = nullptr; QDockWidget *registerRefsDock = nullptr; + void initUI(); void initToolBar(); void initDocks(); void initLayout(); diff --git a/src/dialogs/InitialOptionsDialog.cpp b/src/dialogs/InitialOptionsDialog.cpp index 0bddaf86..57233719 100644 --- a/src/dialogs/InitialOptionsDialog.cpp +++ b/src/dialogs/InitialOptionsDialog.cpp @@ -215,8 +215,6 @@ QList InitialOptionsDialog::getSelectedAdvancedAnalCmds() co void InitialOptionsDialog::setupAndStartAnalysis(/*int level, QList advanced*/) { - main->initUI(); - InitialOptions options; options.filename = main->getFilename();