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
Education
KmPlot
Commits
bf98160a
Commit
bf98160a
authored
Oct 17, 2022
by
Nicolas Fella
Browse files
Port away from deprecated KIO::stat
parent
1949aee9
Changes
1
Hide whitespace changes
Inline
Side-by-side
kmplot/maindlg.cpp
View file @
bf98160a
...
...
@@ -743,8 +743,7 @@ bool MainDlg::fileExists(const QUrl &url)
{
bool
fileExists
=
false
;
if
(
url
.
isValid
())
{
short
int
detailLevel
=
0
;
// Lowest level: file/dir/symlink/none
KIO
::
StatJob
*
statjob
=
KIO
::
stat
(
url
,
KIO
::
StatJob
::
SourceSide
,
detailLevel
);
KIO
::
StatJob
*
statjob
=
KIO
::
statDetails
(
url
,
KIO
::
StatJob
::
SourceSide
,
KIO
::
StatBasic
);
bool
noerror
=
statjob
->
exec
();
if
(
noerror
)
{
// We want a file
...
...
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