Commit 8c5c9bc0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

reduce variable scope

parent 24c1428a
......@@ -41,8 +41,8 @@ void SummaryView::fillSyncActionSubEntries()
mAllSync = mSyncAction->addAction(i18nc("@action:inmenu sync everything", "All"));
QStringList menuItems;
if (QDBusConnection::sessionBus().interface()->isServiceRegistered(QStringLiteral("org.kde.kmail"))) {
QStringList menuItems;
org::kde::kmail::kmail kmail(QStringLiteral("org.kde.kmail"), QStringLiteral("/KMail"), QDBusConnection::sessionBus());
const QDBusReply<QStringList> reply = kmail.accounts();
if (reply.isValid()) {
......
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