diff options
author | Aaron Seigo <aseigo@kde.org> | 2014-12-16 12:13:43 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2014-12-16 12:13:43 +0100 |
commit | 9ba4cf93ff457e59b3fc563e961843acf09dc72d (patch) | |
tree | b4b1bcae868ce30ed5468e1168d15c168cf82c24 | |
parent | abdbd0e8d9a761b7906da2999d4fd58f2771c202 (diff) | |
download | sink-9ba4cf93ff457e59b3fc563e961843acf09dc72d.tar.gz sink-9ba4cf93ff457e59b3fc563e961843acf09dc72d.zip |
send a sync command on start
-rw-r--r-- | client/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/main.cpp b/client/main.cpp index 2b50003..7449209 100644 --- a/client/main.cpp +++ b/client/main.cpp | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <QApplication> | 20 | #include <QApplication> |
21 | #include <QCommandLineParser> | 21 | #include <QCommandLineParser> |
22 | 22 | ||
23 | #include "common/commands.h" | ||
23 | #include "common/console.h" | 24 | #include "common/console.h" |
24 | #include "common/resourceaccess.h" | 25 | #include "common/resourceaccess.h" |
25 | 26 | ||
@@ -42,6 +43,7 @@ int main(int argc, char *argv[]) | |||
42 | Akonadi2::ResourceAccess *resAccess = new Akonadi2::ResourceAccess(resource); | 43 | Akonadi2::ResourceAccess *resAccess = new Akonadi2::ResourceAccess(resource); |
43 | QObject::connect(&app, &QCoreApplication::aboutToQuit, | 44 | QObject::connect(&app, &QCoreApplication::aboutToQuit, |
44 | resAccess, &Akonadi2::ResourceAccess::close); | 45 | resAccess, &Akonadi2::ResourceAccess::close); |
46 | resAccess->sendCommand(Akonadi2::Commands::SynchronizeCommand); | ||
45 | resAccess->open(); | 47 | resAccess->open(); |
46 | } | 48 | } |
47 | 49 | ||