From a22b97a53bc5b92116092f19d56bcca90062f308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Sat, 1 Apr 2017 13:33:16 +0200 Subject: [PATCH] Fix Program quit when closing dialogs --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 9326715f..3a3ed39e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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();