From 9ba4cf93ff457e59b3fc563e961843acf09dc72d Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Tue, 16 Dec 2014 12:13:43 +0100 Subject: send a sync command on start --- client/main.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 @@ #include #include +#include "common/commands.h" #include "common/console.h" #include "common/resourceaccess.h" @@ -42,6 +43,7 @@ int main(int argc, char *argv[]) Akonadi2::ResourceAccess *resAccess = new Akonadi2::ResourceAccess(resource); QObject::connect(&app, &QCoreApplication::aboutToQuit, resAccess, &Akonadi2::ResourceAccess::close); + resAccess->sendCommand(Akonadi2::Commands::SynchronizeCommand); resAccess->open(); } -- cgit v1.2.3