mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 03:16: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;
|
panelLock = false;
|
||||||
tabsOnTop = false;
|
tabsOnTop = false;
|
||||||
configuration = Config();
|
configuration = Config();
|
||||||
|
|
||||||
|
initUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindow::~MainWindow()
|
MainWindow::~MainWindow()
|
||||||
@ -519,7 +521,6 @@ void MainWindow::openProject(const QString &project_name)
|
|||||||
|
|
||||||
core->openProject(project_name);
|
core->openProject(project_name);
|
||||||
|
|
||||||
initUI();
|
|
||||||
finalizeOpen();
|
finalizeOpen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,8 +71,6 @@ public:
|
|||||||
void closeNewFileDialog();
|
void closeNewFileDialog();
|
||||||
void openProject(const QString &project_name);
|
void openProject(const QString &project_name);
|
||||||
|
|
||||||
void initUI();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param quit whether to show destructive button in dialog
|
* @param quit whether to show destructive button in dialog
|
||||||
* @return if quit is true, false if the application should not close
|
* @return if quit is true, false if the application should not close
|
||||||
@ -258,6 +256,7 @@ private:
|
|||||||
QDockWidget *breakpointDock = nullptr;
|
QDockWidget *breakpointDock = nullptr;
|
||||||
QDockWidget *registerRefsDock = nullptr;
|
QDockWidget *registerRefsDock = nullptr;
|
||||||
|
|
||||||
|
void initUI();
|
||||||
void initToolBar();
|
void initToolBar();
|
||||||
void initDocks();
|
void initDocks();
|
||||||
void initLayout();
|
void initLayout();
|
||||||
|
@ -215,8 +215,6 @@ QList<CommandDescription> InitialOptionsDialog::getSelectedAdvancedAnalCmds() co
|
|||||||
|
|
||||||
void InitialOptionsDialog::setupAndStartAnalysis(/*int level, QList<QString> advanced*/)
|
void InitialOptionsDialog::setupAndStartAnalysis(/*int level, QList<QString> advanced*/)
|
||||||
{
|
{
|
||||||
main->initUI();
|
|
||||||
|
|
||||||
InitialOptions options;
|
InitialOptions options;
|
||||||
|
|
||||||
options.filename = main->getFilename();
|
options.filename = main->getFilename();
|
||||||
|
Loading…
Reference in New Issue
Block a user