Commit 989f772b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix build against last kio

parent ceb74876
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
* your version. * your version.
*/ */
#include "renamefiledialog.h" #include "renamefiledialog.h"
#include "kio_version.h"
#include <kseparator.h> #include <kseparator.h>
#include <QLineEdit> #include <QLineEdit>
#include <QPushButton> #include <QPushButton>
...@@ -201,7 +201,12 @@ void RenameFileDialog::slotRenamePressed() ...@@ -201,7 +201,12 @@ void RenameFileDialog::slotRenamePressed()
if (newName().isLocalFile()) { if (newName().isLocalFile()) {
fileExists = QFile::exists(newName().path()); fileExists = QFile::exists(newName().path());
} else { } else {
//#if KIO_VERSION < QT_VERSION_CHECK(5, 69, 0)
#if KIOCORE_ENABLE_DEPRECATED_SINCE(5, 69)
auto job = KIO::stat(newName(), KIO::StatJob::DestinationSide, 0); auto job = KIO::stat(newName(), KIO::StatJob::DestinationSide, 0);
#else
auto job = KIO::statDetails(newName(), KIO::StatJob::DestinationSide, KIO::StatDetail::Basic);
#endif
KJobWidgets::setWindow(job, this); KJobWidgets::setWindow(job, this);
fileExists = job->exec(); fileExists = job->exec();
} }
......
Markdown is supported
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