mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
Call MainWindow::initUI in Constructor (#1872)
This commit is contained in:
parent
2b20e83738
commit
4906e2b80b
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user