mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-31 00:35:05 +00:00
display icon in tray for main window
This commit is contained in:
parent
897d226c2b
commit
0fa6165ab7
@ -9,7 +9,7 @@ createNewDialog::createNewDialog(QWidget *parent) :
|
||||
ui(new Ui::createNewDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
w = new MainWindow(this);
|
||||
w = new MainWindow(nullptr);
|
||||
w->core = new QRCore ();
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ void createNewDialog::on_pushButton_2_clicked()
|
||||
{
|
||||
// Close dialog and open OptionsDialog
|
||||
close();
|
||||
NewFileDialog* n = new NewFileDialog(this);
|
||||
NewFileDialog* n = new NewFileDialog(nullptr);
|
||||
n->show();
|
||||
}
|
||||
|
||||
|
@ -100,7 +100,7 @@ void NewFileDialog::on_loadFileButton_clicked()
|
||||
} else {
|
||||
// Close dialog and open OptionsDialog
|
||||
close();
|
||||
OptionsDialog* o = new OptionsDialog(this);
|
||||
OptionsDialog* o = new OptionsDialog(nullptr);
|
||||
o->setFilename (fname, this->strippedName(fname));
|
||||
o->exec();
|
||||
}
|
||||
@ -145,7 +145,7 @@ void NewFileDialog::on_recentsList_itemDoubleClicked(QListWidgetItem *item)
|
||||
QString sitem = data.toString();
|
||||
// Close dialog and open OptionsDialog
|
||||
close();
|
||||
OptionsDialog* o = new OptionsDialog(this);
|
||||
OptionsDialog* o = new OptionsDialog(nullptr);
|
||||
o->setFilename (sitem, this->strippedName(sitem));
|
||||
o->exec();
|
||||
}
|
||||
@ -177,7 +177,7 @@ void NewFileDialog::on_createButton_clicked()
|
||||
{
|
||||
// Close dialog and open create new file dialog
|
||||
close();
|
||||
createNewDialog* n = new createNewDialog(this);
|
||||
createNewDialog* n = new createNewDialog(nullptr);
|
||||
n->exec();
|
||||
}
|
||||
|
||||
|
@ -73,7 +73,7 @@ void OptionsDialog::on_okButton_clicked()
|
||||
//ui->progressBar->setValue(5);
|
||||
|
||||
// Close dialog and open OptionsDialog
|
||||
this->w = new MainWindow(this);
|
||||
this->w = new MainWindow(nullptr);
|
||||
this->w->core = this->core;
|
||||
|
||||
// Fill asm plugins in hexdump combo
|
||||
@ -234,7 +234,7 @@ void OptionsDialog::on_cancelButton_clicked()
|
||||
this->core = NULL; // implicit by delete?
|
||||
// Close dialog and open OptionsDialog
|
||||
close();
|
||||
NewFileDialog* n = new NewFileDialog(this);
|
||||
NewFileDialog* n = new NewFileDialog(nullptr);
|
||||
n->show();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user