diff options
author | link2xt <link2xt@testrun.org> | 2021-08-28 21:36:42 +0000 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2021-08-28 21:36:42 +0000 |
commit | 5eb7970d33ab0fab70f7fbb70f61bd1911d19b98 (patch) | |
tree | a65a3f55d2a8fe332978fb5d8abaf43772c5a766 /qml/main.qml | |
parent | 4f5a03a67d42a11a4ed6e2463790b1277def0f79 (diff) | |
download | kdeltachat-5eb7970d33ab0fab70f7fbb70f61bd1911d19b98.tar.gz kdeltachat-5eb7970d33ab0fab70f7fbb70f61bd1911d19b98.zip |
Create event emitter only after creating an account
Otherwise event emitter will be closed immediately
Diffstat (limited to 'qml/main.qml')
-rw-r--r-- | qml/main.qml | 5 |
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) { |