aboutsummaryrefslogtreecommitdiff
path: root/qml/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'qml/main.qml')
-rw-r--r--qml/main.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/qml/main.qml b/qml/main.qml
index e095f58..4969a45 100644
--- a/qml/main.qml
+++ b/qml/main.qml
@@ -57,8 +57,6 @@ Kirigami.ApplicationWindow {
Component.onCompleted: {
console.log('starting')
- eventEmitter = dcAccounts.getEventEmitter()
- eventEmitter.start();
// Create an account if there is none.
if (dcAccounts.getSelectedAccount() == null) {
@@ -66,6 +64,9 @@ Kirigami.ApplicationWindow {
dcAccounts.addAccount();
}
+ eventEmitter = dcAccounts.getEventEmitter()
+ eventEmitter.start();
+
// Open selected account if there is one.
let selectedAccount = dcAccounts.getSelectedAccount();
if (selectedAccount) {