Commit a8480e6d authored by Laurent Montel's avatar Laurent Montel
Browse files

KMessageBox::sorry is deprecated in kf5.97

parent 043f73c6
Pipeline #210017 passed with stage
in 4 minutes and 58 seconds
......@@ -239,7 +239,7 @@ void ArchiveDialog::slotUser1()
// Get destination URL
QUrl destUrl(mArchiveFile->url());
if (!destUrl.isValid()) {
KMessageBox::sorry(this, i18nc("@info", "The archive file name is not valid."));
KMessageBox::error(this, i18nc("@info", "The archive file name is not valid."));
return;
}
// Force filename to be ending with vCalendar extension
......
......@@ -100,7 +100,7 @@ Attachment AttachmentHandler::find(const QString &attachmentName, const Incidenc
KJobWidgets::setWindow(job, d->mParent);
if (!job->exec()) {
KMessageBox::sorry(
KMessageBox::error(
d->mParent,
i18n("The attachment \"%1\" is a web link that is inaccessible from this computer. ", QUrl::fromPercentEncoding(a.uri().toLatin1())));
return Attachment();
......
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