GUI: resolved issue #639 (crash when restarting from the references tab)
This commit is contained in:
parent
97b2319371
commit
e1736f7a4f
|
@ -45,6 +45,7 @@ MainWindow::MainWindow(QWidget* parent)
|
|||
connect(Bridge::getBridge(), SIGNAL(showQWidgetTab(QWidget*)), this, SLOT(showQWidgetTab(QWidget*)));
|
||||
connect(Bridge::getBridge(), SIGNAL(closeQWidgetTab(QWidget*)), this, SLOT(closeQWidgetTab(QWidget*)));
|
||||
connect(Bridge::getBridge(), SIGNAL(executeOnGuiThread(void*)), this, SLOT(executeOnGuiThread(void*)));
|
||||
connect(Bridge::getBridge(), SIGNAL(dbgStateChanged(DBGSTATE)), this, SLOT(dbgStateChangedSlot(DBGSTATE)));
|
||||
|
||||
// Setup menu API
|
||||
initMenuApi();
|
||||
|
@ -256,13 +257,11 @@ MainWindow::MainWindow(QWidget* parent)
|
|||
connect(mTabWidget, SIGNAL(tabMovedTabWidget(int, int)), this, SLOT(tabMovedSlot(int, int)));
|
||||
connect(Config(), SIGNAL(shortcutsUpdated()), this, SLOT(refreshShortcuts()));
|
||||
|
||||
|
||||
// Set default setttings (when not set)
|
||||
SettingsDialog defaultSettings;
|
||||
lastException = 0;
|
||||
defaultSettings.SaveSettings();
|
||||
|
||||
|
||||
// Create updatechecker
|
||||
mUpdateChecker = new UpdateChecker(this);
|
||||
|
||||
|
@ -1240,6 +1239,12 @@ void MainWindow::chkSaveloadTabSavedOrderStateChangedSlot(bool state)
|
|||
loadTabDefaultOrder();
|
||||
}
|
||||
|
||||
void MainWindow::dbgStateChangedSlot(DBGSTATE state)
|
||||
{
|
||||
if(state == initialized) //fixes a crash when restarting with certain settings in another tab
|
||||
displayCpuWidget();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionFaq_triggered()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("http://faq.x64dbg.com"));
|
||||
|
|
|
@ -123,6 +123,7 @@ public slots:
|
|||
void executeOnGuiThread(void* cbGuiThread);
|
||||
void tabMovedSlot(int from, int to);
|
||||
void chkSaveloadTabSavedOrderStateChangedSlot(bool state);
|
||||
void dbgStateChangedSlot(DBGSTATE state);
|
||||
|
||||
private:
|
||||
Ui::MainWindow* ui;
|
||||
|
|
Loading…
Reference in New Issue