Commit bf98160a authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Port away from deprecated KIO::stat

parent 1949aee9
......@@ -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
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