diff options
Diffstat (limited to 'examples/client')
-rw-r--r-- | examples/client/main.cpp | 4 |
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); |