Commit 350f9523 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

KMessageBox::sorry is deprecated in kf5.97

parent 7e881b82
Pipeline #210495 passed with stage
in 5 minutes and 15 seconds
......@@ -222,7 +222,7 @@ void JoyWidget::deviceChanged(const QString &dev)
QString devName;
if ((start = dev.indexOf(QLatin1String("/dev"))) == -1) {
KMessageBox::sorry(this,
KMessageBox::error(this,
i18n("The given device name is invalid (does not contain /dev).\n"
"Please select a device from the list or\n"
"enter a device file, like /dev/js0."),
......
......@@ -205,7 +205,7 @@ bool KNetAttach::validateCurrentPage()
bool success = doConnectionTest(url);
_folderParameters->setEnabled(true);
if (!success) {
KMessageBox::sorry(this, i18n("Unable to connect to server. Please check your settings and try again."));
KMessageBox::error(this, i18n("Unable to connect to server. Please check your settings and try again."));
button(BackButton)->setEnabled(true);
return false;
}
......
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