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 1a0d53e2 authored by Allen Winter's avatar Allen Winter

src/sieveeditorpagewidget.cpp - fix error message if the upload fails

Differential Revision: https://phabricator.kde.org/D7284
parent 7c19c262
......@@ -142,11 +142,16 @@ void SieveEditorPageWidget::slotPutResult(KManageSieve::SieveJob *job, bool succ
mSieveEditorWidget->setModified(false);
} else {
const QString msg = job->errorString();
if (msg.isEmpty()) {
KMessageBox::error(nullptr, i18n("Uploading the Sieve script failed.\n"
"The server responded:\n%1", msg, i18n("Sieve Error")));
if (!msg.isEmpty()) {
KMessageBox::error(nullptr,
i18n("Uploading the Sieve script failed.\n"
"The server responded:\n%1", msg),
i18n("Sieve Error"));
} else {
KMessageBox::error(nullptr, msg, i18n("Sieve Error"));
KMessageBox::error(nullptr,
i18n("Uploading the Sieve script failed.\n"
"unknown reason\n"),
i18n("Sieve Error"));
}
}
}
......
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