Commit cd9baa78 authored by Marius Pa's avatar Marius Pa Committed by Laurent Montel
Browse files

KMessageBox::sorry is deprecated

parent 14ade9a1
Pipeline #210014 passed with stage
in 7 minutes and 23 seconds
......@@ -152,7 +152,7 @@ void BackupJob::abort(const QString &errorMessage)
text += QLatin1Char('\n') + errorMessage;
Q_EMIT error(text);
if (mDisplayMessageBox) {
KMessageBox::sorry(mParentWidget, text, i18n("Archiving failed"));
KMessageBox::error(mParentWidget, text, i18n("Archiving failed"));
}
deleteLater();
// Clean up archive file here?
......
......@@ -205,7 +205,7 @@ void RedirectDialog::accept()
{
const QString editTo = d->mEditTo->resend();
if (editTo.isEmpty()) {
KMessageBox::sorry(this, i18n("You cannot redirect the message without an address."), i18n("Empty Redirection Address"));
KMessageBox::error(this, i18n("You cannot redirect the message without an address."), i18n("Empty Redirection Address"));
} else {
done(QDialog::Accepted);
}
......
Supports Markdown
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