mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 19:36:11 +00:00
Fix Program quit when closing dialogs
This commit is contained in:
parent
8f80007531
commit
a22b97a53b
@ -50,13 +50,13 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
NewFileDialog *n = new NewFileDialog();
|
||||
n->setAttribute(Qt::WA_DeleteOnClose);
|
||||
n->exec();
|
||||
n->show();
|
||||
}
|
||||
else // filename specified as positional argument
|
||||
{
|
||||
OptionsDialog *o = new OptionsDialog(args[0]);
|
||||
o->setAttribute(Qt::WA_DeleteOnClose);
|
||||
o->exec();
|
||||
o->show();
|
||||
}
|
||||
|
||||
return a.exec();
|
||||
|
Loading…
Reference in New Issue
Block a user