Commit 78907b52 authored by Laurent Montel's avatar Laurent Montel 😁

Rename method

parent c15067d8
......@@ -126,7 +126,7 @@ void KMLaunchExternalComponent::slotExportData()
}
}
void KMLaunchExternalComponent::slotAddrBook()
void KMLaunchExternalComponent::slotRunAddressBook()
{
KRun::runCommand(QStringLiteral("kaddressbook"), mParentWidget->window());
}
......
......@@ -36,7 +36,7 @@ public Q_SLOTS:
void slotStartWatchGnuPG();
void slotImportWizard();
void slotExportData();
void slotAddrBook();
void slotRunAddressBook();
void slotImport();
void slotAccountWizard();
void slotFilterLogViewer();
......
......@@ -328,7 +328,7 @@ KMMainWidget::KMMainWidget(QWidget *parent, KXMLGUIClient *aGUIClient, KActionCo
restoreCollectionFolderViewConfig();
if (kmkernel->firstStart()) {
QStringList listOfMailerFound = MailCommon::Util::foundMailer();
const QStringList listOfMailerFound = MailCommon::Util::foundMailer();
if (!listOfMailerFound.isEmpty()) {
if (KMessageBox::questionYesNoList(this, i18n("Another mailer was found on system. Do you want to import data from it?"), listOfMailerFound) == KMessageBox::Yes) {
const QString path = QStandardPaths::findExecutable(QStringLiteral("akonadiimportwizard"));
......@@ -2915,7 +2915,7 @@ void KMMainWidget::setupActions()
if (parent()->inherits("KMMainWin")) {
QAction *action = new QAction(QIcon::fromTheme(QStringLiteral("x-office-address-book")), i18n("&Address Book"), this);
actionCollection()->addAction(QStringLiteral("addressbook"), action);
connect(action, &QAction::triggered, mLaunchExternalComponent, &KMLaunchExternalComponent::slotAddrBook);
connect(action, &QAction::triggered, mLaunchExternalComponent, &KMLaunchExternalComponent::slotRunAddressBook);
if (QStandardPaths::findExecutable(QStringLiteral("kaddressbook")).isEmpty()) {
action->setEnabled(false);
}
......
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