summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-07-30 22:43:10 +0200
committerMontel Laurent <[email protected]>2015-07-30 22:44:23 +0200
commit17001317a54ff725ec295236b5048053f4337a8a (patch)
treea7d0f2984909338a81bead69eb6dd3eb118b7574
parentb64f6f7fb8e32243ffd0c519a6bce131dd82779a (diff)
Fix action
-rw-r--r--kaddressbook/mainwidget.cpp7
-rw-r--r--kaddressbook/mainwidget.h1
2 files changed, 5 insertions, 3 deletions
diff --git a/kaddressbook/mainwidget.cpp b/kaddressbook/mainwidget.cpp
index 6a89fc8..0a20058 100644
--- a/kaddressbook/mainwidget.cpp
+++ b/kaddressbook/mainwidget.cpp
@@ -728,9 +728,9 @@ void MainWidget::setupActions(KActionCollection *collection)
collection->addAction(QStringLiteral("serverside_subscription"), mServerSideSubscription);
connect(mServerSideSubscription, &QAction::triggered, this, &MainWidget::slotServerSideSubscription);
- action = collection->addAction(QStringLiteral("gravatar"));
- action->setText(i18n("Check gravatar..."));
- connect(action, &QAction::triggered, this, &MainWidget::slotCheckGravatar);
+ mSearchGravatarAction = collection->addAction(QStringLiteral("search_gravatar"));
+ mSearchGravatarAction->setText(i18n("Check gravatar..."));
+ connect(mSearchGravatarAction, &QAction::triggered, this, &MainWidget::slotCheckGravatar);
}
void MainWidget::printPreview()
@@ -1131,6 +1131,7 @@ void MainWidget::slotCheckGravatar()
Akonadi::Item item = lst.first();
if (item.hasPayload<KContacts::Addressee>()) {
QPointer<KABGravatar::GravatarUpdateDialog> dlg = new KABGravatar::GravatarUpdateDialog(this);
+ //dlg->setEmail();
if (dlg->exec()) {
//extract emails.
}
diff --git a/kaddressbook/mainwidget.h b/kaddressbook/mainwidget.h
index ae7ffdb..527e697 100644
--- a/kaddressbook/mainwidget.h
+++ b/kaddressbook/mainwidget.h
@@ -167,6 +167,7 @@ private:
Akonadi::EntityTreeModel *entityTreeModel() const;
QAction *mQuickSearchAction;
QAction *mServerSideSubscription;
+ QAction *mSearchGravatarAction;
};
#endif