Commit 48c11b16 authored by Laurent Montel's avatar Laurent Montel
Browse files

KMessageBox::sorry is deprecated in kf5.97

parent 441355bf
Pipeline #210197 passed with stage
in 1 minute and 45 seconds
......@@ -97,7 +97,7 @@ void ArkViewer::openInternalViewer(const KService::Ptr viewer, const QString& fi
return;
}
else {
KMessageBox::sorry(nullptr, i18n("The internal viewer cannot preview this file."));
KMessageBox::error(nullptr, i18n("The internal viewer cannot preview this file."));
delete internalViewer;
qCDebug(ARK) << "Removing temporary file:" << fileName;
......
......@@ -304,7 +304,7 @@ void Part::extractSelectedFilesTo(const QString& localPath)
const QString udsLocalPath = statJob->statResult().stringValue(KIO::UDSEntry::UDS_LOCAL_PATH);
if (udsLocalPath.isEmpty()) { // The URL could not be resolved to a local path
qCWarning(ARK) << "Ark cannot extract to non-local destination:" << localPath;
KMessageBox::sorry(widget(), xi18nc("@info", "Ark can extract archives to local destinations only."));
KMessageBox::error(widget(), xi18nc("@info", "Ark can extract archives to local destinations only."));
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