summaryrefslogtreecommitdiff
path: root/src/organizercore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/organizercore.cpp')
-rw-r--r--src/organizercore.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index a8fc67c2..dff3485e 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -866,7 +866,8 @@ OrganizerCore::doInstall(const QString& archivePath, GuessedValue<QString> modNa
ModInfo::Ptr OrganizerCore::installDownload(int index, int priority)
{
- ScopedDisableDirWatcher scopedDirwatcher(&m_DownloadManager);
+ DirWatcherManager::Guard dirWatcherGuard =
+ m_DownloadManager.dirWatcher().scopedGuard();
try {
QString fileName = m_DownloadManager.getFilePath(index);