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

KMessageBox::sorry is deprecated in kf5.97

parent ce0bdd88
Pipeline #210499 passed with stage
in 44 seconds
......@@ -199,10 +199,10 @@ void KfindDlg::slotResult(int errorCode)
setStatusMsg(i18n("Canceled."));
} else if (errorCode == KIO::ERR_MALFORMED_URL) {
setStatusMsg(i18n("Error."));
KMessageBox::sorry(this, i18n("Please specify an absolute path in the \"Look in\" box."));
KMessageBox::error(this, i18n("Please specify an absolute path in the \"Look in\" box."));
} else if (errorCode == KIO::ERR_DOES_NOT_EXIST) {
setStatusMsg(i18n("Error."));
KMessageBox::sorry(this, i18n("Could not find the specified folder."));
KMessageBox::error(this, i18n("Could not find the specified folder."));
} else {
setStatusMsg(i18n("Error."));
}
......
......@@ -547,7 +547,7 @@ bool KfindTabWidget::isDateValid()
return true;
}
KMessageBox::sorry(this, i18n("Unable to search within a period which is less than a minute."));
KMessageBox::error(this, i18n("Unable to search within a period which is less than a minute."));
return false;
}
......@@ -566,7 +566,7 @@ bool KfindTabWidget::isDateValid()
}
if (!str.isEmpty()) {
KMessageBox::sorry(nullptr, str);
KMessageBox::error(nullptr, str);
return false;
}
return true;
......
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