Commit eb1a2a40 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

KMessageBox::sorry is deprecated in kf5.97

parent 292cd1de
Pipeline #210498 passed with stage
in 1 minute and 53 seconds
......@@ -61,12 +61,12 @@ void MenuEntryAction::set_service(KService::Ptr service)
void MenuEntryAction::execute()
{
if (!service()) {
KMessageBox::sorry(nullptr, i18n("No service configured."), i18n("Input Action: %1", data->comment()));
KMessageBox::error(nullptr, i18n("No service configured."), i18n("Input Action: %1", data->comment()));
return;
}
if (!KRun::run(*service(), {}, nullptr)) {
KMessageBox::sorry(nullptr, i18n("Failed to start service '%1'.", service()->name()), i18n("Input Action: %1", data->comment()));
KMessageBox::error(nullptr, i18n("Failed to start service '%1'.", service()->name()), i18n("Input Action: %1", data->comment()));
return;
}
}
......
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