Files
haikuports/kde-apps/kaccounts_integration/patches/kaccounts_integration-24.08.2.patchset
2024-10-28 11:07:20 +01:00

45 lines
1.4 KiB
Plaintext

From a8c61d38b7dabcf9e8a73e21fefba016d757e448 Mon Sep 17 00:00:00 2001
From: Schrijvers Luc <begasus@gmail.com>
Date: Mon, 9 Sep 2024 16:07:36 +0200
Subject: Disable KDirNotify
diff --git a/src/plugins/kio-webdav/kioservices.cpp b/src/plugins/kio-webdav/kioservices.cpp
index 9881963..9c35303 100644
--- a/src/plugins/kio-webdav/kioservices.cpp
+++ b/src/plugins/kio-webdav/kioservices.cpp
@@ -17,7 +17,9 @@
#include <KConfig>
#include <KConfigGroup>
-#include <KDirNotify>
+#ifndef __HAIKU__
+ #include <KDirNotify>
+#endif
#include <KIO/TransferJob>
#include <KLocalizedString>
#include <KPluginFactory>
@@ -214,7 +216,9 @@ QCoro::Task<void> KIOServices::createNetAttach(const Accounts::AccountId account
wallet->writeMap(walletUrl + QStringLiteral("webdav"), info);
wallet->sync();
+#ifndef __HAIKU__
org::kde::KDirNotify::emitFilesAdded(QUrl(QStringLiteral("remote:/")));
+#endif
}
QCoro::Task<QString> KIOServices::getRealm(const QUrl &url)
@@ -267,7 +271,9 @@ QCoro::Task<void> KIOServices::removeNetAttach(const QString &id)
qDebug() << url.userName() << url.host() << url;
QFile::remove(path);
+#ifndef __HAIKU__
org::kde::KDirNotify::emitFilesRemoved(QList<QUrl>() << QUrl(QStringLiteral("remote:/") + id));
+#endif
QString walletUrl(QStringLiteral("webdav"));
walletUrl.append(QStringLiteral("-"));
--
2.45.2