diff --git a/src/core/desktopentrymonitor.cpp b/src/core/desktopentrymonitor.cpp index bed6ef15..bd3109dd 100644 --- a/src/core/desktopentrymonitor.cpp +++ b/src/core/desktopentrymonitor.cpp @@ -46,7 +46,7 @@ DesktopEntryMonitor::DesktopEntryMonitor(QObject* parent): QObject(parent) { void DesktopEntryMonitor::startMonitoring() { for (const auto& path: DesktopEntryManager::desktopPaths()) { if (!QDir(path).exists()) continue; - addPathAndParents(this->watcher, path); + this->watcher.addPath(path); this->scanAndWatch(path); } }