Commit 7f265352 authored by Laurent Montel's avatar Laurent Montel
Browse files

KMessageBox::sorry is deprecated in kf5.97

parent e09a79f7
Pipeline #210023 passed with stage
in 3 minutes and 42 seconds
......@@ -71,7 +71,7 @@ void NotesNetworkSender::slotWritten(qint64)
void NotesNetworkSender::slotError()
{
KMessageBox::sorry(nullptr, i18n("Communication error: %1", m_socket->errorString()));
KMessageBox::error(nullptr, i18n("Communication error: %1", m_socket->errorString()));
slotClosed();
}
......
......@@ -28,7 +28,7 @@ bool NoteUtils::sendToMail(QWidget *parent, const QString &title, const QString
// get the mail action command
const QStringList cmd_list = NoteShared::NoteSharedGlobalConfig::mailAction().split(QLatin1Char(' '), Qt::SkipEmptyParts);
if (cmd_list.isEmpty()) {
KMessageBox::sorry(parent, i18n("Please configure send mail action."));
KMessageBox::error(parent, i18n("Please configure send mail action."));
return false;
}
KProcess mail;
......@@ -43,7 +43,7 @@ bool NoteUtils::sendToMail(QWidget *parent, const QString &title, const QString
}
if (!mail.startDetached()) {
KMessageBox::sorry(parent, i18n("Unable to start the mail process."));
KMessageBox::error(parent, i18n("Unable to start the mail process."));
return false;
}
return true;
......@@ -56,7 +56,7 @@ void NoteUtils::sendToNetwork(QWidget *parent, const QString &title, const QStri
if (hostDlg->exec()) {
const QString host = hostDlg->host();
if (host.isEmpty()) {
KMessageBox::sorry(parent, i18n("The host cannot be empty."));
KMessageBox::error(parent, i18n("The host cannot be empty."));
delete hostDlg;
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