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

KMessageBox::sorry is deprecated in kf5.97

parent 17ef1e65
Pipeline #210933 passed with stage
in 2 minutes and 30 seconds
......@@ -170,7 +170,7 @@ void ParleyMainWindow::configurePractice()
void ParleyMainWindow::startPractice()
{
if (Prefs::learningLanguage() == Prefs::knownLanguage()) {
KMessageBox::sorry(this, i18n("You cannot start to practice when the known language is the same as the language to learn."), i18n("Select languages"));
KMessageBox::error(this, i18n("You cannot start to practice when the known language is the same as the language to learn."), i18n("Select languages"));
return;
}
qDebug() << "Starting Switch Practice";
......
......@@ -279,7 +279,7 @@ void BlockOptions::checkValidity()
}
if (message.length() != 0)
KMessageBox::sorry(this, message, i18n("Illogical Values"));
KMessageBox::error(this, message, i18n("Illogical Values"));
}
bool BlockOptions::isDefault()
......
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