Fix Program quit when closing dialogs

This commit is contained in:
Florian Märkl 2017-04-01 13:33:16 +02:00 committed by Sergi Àlvarez i Capilla
parent 8f80007531
commit a22b97a53b

View File

@ -50,13 +50,13 @@ int main(int argc, char *argv[])
{ {
NewFileDialog *n = new NewFileDialog(); NewFileDialog *n = new NewFileDialog();
n->setAttribute(Qt::WA_DeleteOnClose); n->setAttribute(Qt::WA_DeleteOnClose);
n->exec(); n->show();
} }
else // filename specified as positional argument else // filename specified as positional argument
{ {
OptionsDialog *o = new OptionsDialog(args[0]); OptionsDialog *o = new OptionsDialog(args[0]);
o->setAttribute(Qt::WA_DeleteOnClose); o->setAttribute(Qt::WA_DeleteOnClose);
o->exec(); o->show();
} }
return a.exec(); return a.exec();