Commit 8bc66abe authored by Laurent Montel's avatar Laurent Montel
Browse files

KMessageBox::sorry is deprecated in kf5.97

parent 47ccc3fc
Pipeline #210016 failed with stage
in 9 minutes and 46 seconds
......@@ -40,7 +40,7 @@ void DialPhoneNumberAction::dialNumber(const KContacts::PhoneNumber &number)
}
if (dialer) {
if (!dialer->dialNumber(number.normalizedNumber())) {
KMessageBox::sorry(nullptr, dialer->errorMessage());
KMessageBox::error(nullptr, dialer->errorMessage());
}
delete dialer;
return;
......@@ -56,7 +56,7 @@ void DialPhoneNumberAction::dialNumber(const KContacts::PhoneNumber &number)
QString command = ContactActionsSettings::self()->phoneCommand();
if (command.isEmpty()) {
KMessageBox::sorry(nullptr, i18n("There is no application set which could be executed.\nPlease go to the settings dialog and configure one."));
KMessageBox::error(nullptr, i18n("There is no application set which could be executed.\nPlease go to the settings dialog and configure one."));
return;
}
......
......@@ -36,7 +36,7 @@ void SendSmsAction::sendSms(const KContacts::PhoneNumber &phoneNumber)
// check for valid config first, so the user doesn't type the message without a way to actually send it
QString command = ContactActionsSettings::self()->smsCommand();
if (command.isEmpty() && ContactActionsSettings::self()->sendSmsAction() == ContactActionsSettings::UseExternalSmsApplication) {
KMessageBox::sorry(nullptr, i18n("There is no application set which could be executed.\nPlease go to the settings dialog and configure one."));
KMessageBox::error(nullptr, i18n("There is no application set which could be executed.\nPlease go to the settings dialog and configure one."));
return;
}
......@@ -60,7 +60,7 @@ void SendSmsAction::sendSms(const KContacts::PhoneNumber &phoneNumber)
// I'm not sure whether here should be a notification.
// Skype can do a notification itself if whished.
} else {
KMessageBox::sorry(nullptr, dialer->errorMessage());
KMessageBox::error(nullptr, dialer->errorMessage());
}
}
......
......@@ -74,7 +74,7 @@ QImage ImageLoader::loadImage(const QUrl &url, bool *ok, bool selectPictureSize)
if (!(*ok)) {
// image does not exist (any more)
KMessageBox::sorry(mParent, i18n("This contact's image cannot be found."));
KMessageBox::error(mParent, i18n("This contact's image cannot be found."));
return image;
}
......
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