summaryrefslogtreecommitdiffstats
path: root/framework/src/startupcheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/startupcheck.cpp')
-rw-r--r--framework/src/startupcheck.cpp7
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 @@
23StartupCheck::StartupCheck(QObject *parent) 23StartupCheck::StartupCheck(QObject *parent)
24 : QObject(parent) 24 : QObject(parent)
25{ 25{
26 QMetaObject::invokeMethod(this, "check", Qt::QueuedConnection);
27} 26}
28 27
29void StartupCheck::check() 28bool 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}