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

KMessageBox::sorry is deprecated in kf5.97

parent c7f026aa
Pipeline #210020 passed with stage
in 20 minutes and 34 seconds
......@@ -106,7 +106,7 @@ bool GoogleSettingsDialog::handleError(KGAPI2::Job *job)
return false;
}
KMessageBox::sorry(this, job->errorString());
KMessageBox::error(this, job->errorString());
return false;
}
......@@ -147,7 +147,7 @@ void GoogleSettingsDialog::slotAuthJobFinished(KGAPI2::Job *job)
auto authJob = qobject_cast<AuthJob *>(job);
m_account = authJob->account();
if (authJob->error() != KGAPI2::NoError) {
KMessageBox::sorry(this, authJob->errorString());
KMessageBox::error(this, authJob->errorString());
return;
}
accountChanged();
......
......@@ -534,7 +534,7 @@ void SetupServer::slotFinished(const QVector<int> &testResult)
using namespace MailTransport;
if (!m_serverTest->isNormalPossible() && !m_serverTest->isSecurePossible()) {
KMessageBox::sorry(this, i18n("Unable to connect to the server, please verify the server address."));
KMessageBox::error(this, i18n("Unable to connect to the server, please verify the server address."));
}
m_ui->testInfo->show();
......
......@@ -288,7 +288,7 @@ void AccountWidget::slotPopEncryptionChanged(QAbstractButton *button)
void AccountWidget::slotCheckPopCapabilities()
{
if (hostEdit->text().isEmpty()) {
KMessageBox::sorry(this,
KMessageBox::error(this,
i18n("Please specify a server and port on "
"the General tab first."));
return;
......@@ -322,7 +322,7 @@ void AccountWidget::slotPopCapabilities(const QVector<int> &encryptionTypes)
// if both fail, popup a dialog
if (!mServerTest->isNormalPossible() && !mServerTest->isSecurePossible()) {
KMessageBox::sorry(this, i18n("Unable to connect to the server, please verify the server address."));
KMessageBox::error(this, i18n("Unable to connect to the server, please verify the server address."));
}
// If the servertest did not find any usable authentication modes, assume the
......
......@@ -494,7 +494,7 @@ void POP3Resource::uidListJobResult(KJob *job)
mUidListValid = !mIdsToUidsMap.isEmpty() || mIdsToSizeMap.isEmpty();
if (mSettings.leaveOnServer() && !mUidListValid) {
// FIXME: this needs a proper parent window
KMessageBox::sorry(nullptr,
KMessageBox::error(nullptr,
i18n("Your POP3 server (Account: %1) does not support "
"the UIDL command: this command is required to determine, in a reliable way, "
"which of the mails on the server KMail has already seen before;\n"
......
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