Call MainWindow::initUI in Constructor (#1872)

This commit is contained in:
Florian Märkl 2019-11-04 17:40:54 +01:00 committed by GitHub
parent 2b20e83738
commit 4906e2b80b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 5 deletions

View File

@ -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();
}

View File

@ -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();

View File

@ -215,8 +215,6 @@ QList<CommandDescription> InitialOptionsDialog::getSelectedAdvancedAnalCmds() co
void InitialOptionsDialog::setupAndStartAnalysis(/*int level, QList<QString> advanced*/)
{
main->initUI();
InitialOptions options;
options.filename = main->getFilename();