summaryrefslogtreecommitdiffstats
path: root/examples/client/main.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-10-31 21:08:39 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-10-31 23:26:26 +0100
commit25d08af0851b56db664cee7f6463532d7c103d33 (patch)
tree7ff24ea3c435d656df9de059e6ff438103c387a6 /examples/client/main.cpp
parent8d59bbdebcca2293d5b3b1da903c39845f7ba1a9 (diff)
downloadsink-25d08af0851b56db664cee7f6463532d7c103d33.tar.gz
sink-25d08af0851b56db664cee7f6463532d7c103d33.zip
Fixed shutdown and synchronize commands
Diffstat (limited to 'examples/client/main.cpp')
-rw-r--r--examples/client/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/client/main.cpp b/examples/client/main.cpp
index 52f3607..0a1a725 100644
--- a/examples/client/main.cpp
+++ b/examples/client/main.cpp
@@ -59,7 +59,9 @@ public:
59 auto syncButton = new QPushButton(this); 59 auto syncButton = new QPushButton(this);
60 syncButton->setText("Synchronize!"); 60 syncButton->setText("Synchronize!");
61 QObject::connect(syncButton, &QPushButton::pressed, []() { 61 QObject::connect(syncButton, &QPushButton::pressed, []() {
62 Akonadi2::Store::synchronize("org.kde.dummy.instance1"); 62 Akonadi2::Query query;
63 query.resources << "org.kde.dummy.instance1";
64 Akonadi2::Store::synchronize(query);
63 }); 65 });
64 66
65 auto removeButton = new QPushButton(this); 67 auto removeButton = new QPushButton(this);