Commit f0ba9da0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix Bug 357283 - kmail tool menu is different if started as standalone...

Fix Bug 357283 - kmail tool menu is different if started as standalone application than a kontact part

BUG: 357283
parent 10976cd0
......@@ -93,6 +93,7 @@ void KAddressBookPart::guiActivateEvent(KParts::GUIActivateEvent *e)
{
qCDebug(KADDRESSBOOK_LOG);
KParts::ReadOnlyPart::guiActivateEvent(e);
mMainWidget->initializePluginActions();
}
#include "kaddressbookpart.moc"
......@@ -85,6 +85,8 @@ public:
Akonadi::Collection currentAddressBook() const;
Akonadi::Item::List selectedItems();
void initializePluginActions();
public Q_SLOTS:
void newContact();
void newGroup();
......@@ -116,7 +118,6 @@ private Q_SLOTS:
void slotCurrentCollectionChanged(const Akonadi::Collection &col);
void slotSelectionChanged();
private:
void initializePluginActions();
const Akonadi::Item::List collectSelectedAllContactsItem(QItemSelectionModel *model);
void initGrantleeThemeName();
void setupGui();
......
......@@ -134,6 +134,7 @@ void KMailPart::guiActivateEvent(KParts::GUIActivateEvent *e)
mainWidget->folderShortcutActionManager()->createActions();
mainWidget->updateVacationScriptStatus();
mainWidget->populateMessageListStatusFilterCombo();
mainWidget->initializePluginActions();
}
void KMailPart::exit()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment