diff options
Diffstat (limited to 'framework/src/startupcheck.cpp')
-rw-r--r-- | framework/src/startupcheck.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/framework/src/startupcheck.cpp b/framework/src/startupcheck.cpp index 850be7bb..fa750173 100644 --- a/framework/src/startupcheck.cpp +++ b/framework/src/startupcheck.cpp | |||
@@ -23,13 +23,10 @@ | |||
23 | StartupCheck::StartupCheck(QObject *parent) | 23 | StartupCheck::StartupCheck(QObject *parent) |
24 | : QObject(parent) | 24 | : QObject(parent) |
25 | { | 25 | { |
26 | QMetaObject::invokeMethod(this, "check", Qt::QueuedConnection); | ||
27 | } | 26 | } |
28 | 27 | ||
29 | void StartupCheck::check() | 28 | bool StartupCheck::noAccount() const |
30 | { | 29 | { |
31 | auto accounts = Sink::Store::read<Sink::ApplicationDomain::SinkAccount>({}); | 30 | auto accounts = Sink::Store::read<Sink::ApplicationDomain::SinkAccount>({}); |
32 | if (accounts.isEmpty()) { | 31 | return accounts.isEmpty(); |
33 | emit noAccount(); | ||
34 | } | ||
35 | } | 32 | } |