mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 05:45:27 +00:00
Fix regression introduced in 0317cf2663
* Graphs are working again * Multiple instances not working * MainWindow was creating a new core, as well as OptionDialog
This commit is contained in:
parent
a8f644dcf4
commit
360407f453
@ -58,12 +58,13 @@ static void appendRow(QTreeWidget *tw, const QString &str, const QString &str2=N
|
||||
tw->insertTopLevelItem(0, tempItem);
|
||||
}
|
||||
|
||||
MainWindow::MainWindow(QWidget *parent) :
|
||||
MainWindow::MainWindow(QWidget *parent, QRCore *kore) :
|
||||
QMainWindow(parent),
|
||||
core(new QRCore()),
|
||||
core(kore),
|
||||
ui(new Ui::MainWindow),
|
||||
webserverThread(core, this)
|
||||
{
|
||||
this->start_web_server();
|
||||
ui->setupUi(this);
|
||||
|
||||
doLock = false;
|
||||
|
@ -56,7 +56,7 @@ public:
|
||||
|
||||
bool responsive;
|
||||
|
||||
explicit MainWindow(QWidget *parent = 0);
|
||||
explicit MainWindow(QWidget *parent = 0, QRCore *kore = nullptr);
|
||||
~MainWindow();
|
||||
|
||||
void start_web_server();
|
||||
|
@ -84,8 +84,7 @@ void OptionsDialog::on_okButton_clicked()
|
||||
//ui->progressBar->setValue(5);
|
||||
|
||||
// Close dialog and open OptionsDialog
|
||||
this->w = new MainWindow(nullptr);
|
||||
this->w->core = this->core;
|
||||
this->w = new MainWindow(0, this->core);
|
||||
|
||||
// Fill asm plugins in hexdump combo
|
||||
this->w->memoryDock->fillPlugins(this->asm_plugins);
|
||||
|
Loading…
Reference in New Issue
Block a user