Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit f0a021ca authored by Laurent Montel's avatar Laurent Montel 😁

Use local variable

parent 361f2658
......@@ -911,14 +911,15 @@ void ComposerViewBase::slotSendComposeResult(KJob *job)
void ComposerViewBase::saveRecentAddresses(const KMime::Message::Ptr &msg)
{
KConfig *config = MessageComposer::MessageComposerSettings::self()->config();
foreach (const QByteArray &address, msg->to()->addresses()) {
KPIM::RecentAddresses::self(MessageComposer::MessageComposerSettings::self()->config())->add(QLatin1String(address));
KPIM::RecentAddresses::self(config)->add(QLatin1String(address));
}
foreach (const QByteArray &address, msg->cc()->addresses()) {
KPIM::RecentAddresses::self(MessageComposer::MessageComposerSettings::self()->config())->add(QLatin1String(address));
KPIM::RecentAddresses::self(config)->add(QLatin1String(address));
}
foreach (const QByteArray &address, msg->bcc()->addresses()) {
KPIM::RecentAddresses::self(MessageComposer::MessageComposerSettings::self()->config())->add(QLatin1String(address));
KPIM::RecentAddresses::self(config)->add(QLatin1String(address));
}
}
......
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