From e389479ec877c6f4146fed2e4f06811836e6da74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9ven=20Car?= Date: Tue, 6 Oct 2020 13:25:03 +0200 Subject: [PATCH] Fix a KDirWatch warning --- wallpapers/image/backgroundlistmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallpapers/image/backgroundlistmodel.cpp b/wallpapers/image/backgroundlistmodel.cpp index a3caed0ee..03df1f53c 100644 --- a/wallpapers/image/backgroundlistmodel.cpp +++ b/wallpapers/image/backgroundlistmodel.cpp @@ -189,7 +189,7 @@ void BackgroundListModel::processPaths(const QStringList &paths) // add new files to dirwatch Q_FOREACH (const KPackage::Package &b, newPackages) { if (!m_dirwatch.contains(b.path())) { - m_dirwatch.addFile(b.path()); + m_dirwatch.addDir(b.path()); } }