From e100bb007f6a8498edf2eab5d8b8b883c920366f Mon Sep 17 00:00:00 2001 From: link2xt Date: Wed, 28 Oct 2020 01:57:45 +0300 Subject: Stop I/O when application is closed --- qml/main.qml | 5 +++++ 1 file changed, 5 insertions(+) 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() + } } -- cgit v1.2.3-70-g09d2