diff options
author | Shyamnath Premnadh <Shyamnath.Premnadh@qt.io> | 2024-04-18 16:26:01 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-04-18 16:21:52 +0000 |
commit | 9702c02991b18fbe4a6dc2cc720d09fcf8f4c1cf (patch) | |
tree | 931ee7b46db1b80473ad41eb9b1e583632a0fa0d | |
parent | 719de4fc999c6496a1ddc96baaefd22fc72d981f (diff) |
Examples: Fix contactlist application
- Application breaks because deleting engine before calling app.exec_().
Pick-to: 6.6 6.5
Task-number: PYSIDE-2206
Change-Id: Ifb049788227dd19b851babc7ed7c00c1609d01db
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
(cherry picked from commit 5e473794b91c716fe39b5a71474b2f74b46925c0)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | examples/quickcontrols/contactslist/main.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/quickcontrols/contactslist/main.py b/examples/quickcontrols/contactslist/main.py index 6c934ec89..d501bbdb4 100644 --- a/examples/quickcontrols/contactslist/main.py +++ b/examples/quickcontrols/contactslist/main.py @@ -23,5 +23,6 @@ if __name__ == '__main__': if not engine.rootObjects(): sys.exit(-1) + ex = app.exec() del engine - sys.exit(app.exec()) + sys.exit(ex) |