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

KMessageBox::sorry is deprecated in kf5.97

parent 0f572aa3
Pipeline #210493 passed with stage
in 1 minute and 36 seconds
......@@ -146,7 +146,7 @@ void DrKonqi::saveReport(const QString &reportText, QWidget *parent)
textStream.flush();
KMessageBox::information(parent, xi18nc("@info", "Report saved to <filename>%1</filename>.", tf.fileName()));
} else {
KMessageBox::sorry(parent, i18nc("@info", "Could not create a file in which to save the report."));
KMessageBox::error(parent, i18nc("@info", "Could not create a file in which to save the report."));
}
} else {
QString defname = getSuggestedKCrashFilename(crashedApplication());
......@@ -179,7 +179,7 @@ void DrKonqi::saveReport(const QString &reportText, QWidget *parent)
ts << reportText;
ts.flush();
} else {
KMessageBox::sorry(parent,
KMessageBox::error(parent,
xi18nc("@info",
"Cannot open file <filename>%1</filename> "
"for writing.",
......@@ -192,7 +192,7 @@ void DrKonqi::saveReport(const QString &reportText, QWidget *parent)
KIO::FileCopyJob *job = KIO::file_copy(QUrl::fromLocalFile(tf.fileName()), fileUrl, -1, KIO::DefaultFlags | KIO::Overwrite);
KJobWidgets::setWindow(job, parent);
if (!job->exec()) {
KMessageBox::sorry(parent, job->errorString());
KMessageBox::error(parent, job->errorString());
}
}
}
......
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