Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Ark
Commits
48c11b16
Commit
48c11b16
authored
Jul 29, 2022
by
Laurent Montel
Browse files
KMessageBox::sorry is deprecated in kf5.97
parent
441355bf
Pipeline
#210197
passed with stage
in 1 minute and 45 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
part/arkviewer.cpp
View file @
48c11b16
...
...
@@ -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
;
...
...
part/part.cpp
View file @
48c11b16
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment