aboutsummaryrefslogtreecommitdiff
path: root/qml/main.qml
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2020-10-28 01:57:45 +0300
committerlink2xt <link2xt@testrun.org>2020-10-28 01:57:45 +0300
commite100bb007f6a8498edf2eab5d8b8b883c920366f (patch)
tree925484fd776e41183f999ab615d124ca022d71d4 /qml/main.qml
parentb542a4ed9f079db5c3ddcfae1eab594c61b421f1 (diff)
downloadkdeltachat-e100bb007f6a8498edf2eab5d8b8b883c920366f.tar.gz
kdeltachat-e100bb007f6a8498edf2eab5d8b8b883c920366f.zip
Stop I/O when application is closed
Diffstat (limited to 'qml/main.qml')
-rw-r--r--qml/main.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/qml/main.qml b/qml/main.qml
index 94ac72a..cb116b3 100644
--- a/qml/main.qml
+++ b/qml/main.qml
@@ -48,4 +48,9 @@ Kirigami.ApplicationWindow {
eventEmitter = accountsModel.getEventEmitter()
eventEmitter.start();
}
+
+ onClosing: {
+ // Cancel all tasks that may block the termination of event loop.
+ accountsModel.stopIo()
+ }
}