]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Clean up KF API older than 5.82
authorAhmad Samir <a.samirh78@gmail.com>
Sat, 17 Jul 2021 12:36:54 +0000 (14:36 +0200)
committerAhmad Samir <a.samirh78@gmail.com>
Mon, 19 Jul 2021 09:57:58 +0000 (09:57 +0000)
GIT_SILENT

src/dolphinmainwindow.cpp
src/trash/dolphintrash.cpp

index d4c8199a6001719495be10fd6047a0860477dfe0..9712b99bc3f2d20fc4f97b4ac488c399730a7742 100644 (file)
@@ -211,11 +211,9 @@ DolphinMainWindow::DolphinMainWindow() :
     QTimer::singleShot(0, this, &DolphinMainWindow::updateOpenPreferredSearchToolAction);
 
     m_fileItemActions.setParentWidget(this);
-#if KIO_VERSION >= QT_VERSION_CHECK(5, 82, 0)
     connect(&m_fileItemActions, &KFileItemActions::error, this, [this](const QString &errorMessage) {
         showErrorMessage(errorMessage);
     });
-#endif
 }
 
 DolphinMainWindow::~DolphinMainWindow()
index 8684cda0690db9a2c337e50dd441a78816ffda3a..df88345561b1268a44dca0281e570fac31713906 100644 (file)
@@ -22,11 +22,7 @@ Trash::Trash()
     // The trash icon must always be updated dependent on whether
     // the trash is empty or not. We use a KDirLister that automatically
     // watches for changes if the number of items has been changed.
-#if KIO_VERSION < QT_VERSION_CHECK(5, 82, 0)
-    m_trashDirLister->setAutoErrorHandlingEnabled(false, nullptr);
-#else
     m_trashDirLister->setAutoErrorHandlingEnabled(false);
-#endif
     m_trashDirLister->setDelayedMimeTypes(true);
     auto trashDirContentChanged = [this]() {
         bool isTrashEmpty = m_trashDirLister->items().isEmpty();