diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-11-12 15:14:19 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-11-12 15:14:19 -0600 |
commit | 8b2bd0a2067489c77942e5c4bd17f956dd3d62ca (patch) | |
tree | 210b97864c1a1a4c605e1173391a041c6c4851d3 | |
parent | 50ec63db91e4e06f0f02c142079a0a35bfd59b13 (diff) | |
download | phonesim-8b2bd0a2067489c77942e5c4bd17f956dd3d62ca.tar.gz |
Fix phonesim exiting after the GUI is removed
This causes phonesim process to exit after the first power on / power
off sequence. Not the desired behavior
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index d4327b1..665d038 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -78,9 +78,10 @@ int main(int argc, char **argv) PhoneSimServer *pss = new PhoneSimServer(filename, port, 0); - if (with_gui) + if (with_gui) { + app.setQuitOnLastWindowClosed(false); pss->setHardwareManipulator(new ControlFactory); - else + } else pss->setHardwareManipulator(new HardwareManipulatorFactory); return app.exec(); |