Skip to content

Commit abaf343

Browse files
committed
Guard the .meta creation in openMetaFile against the directory watcher
openMetaFile creates the .meta file via QSettings when one does not exist; the disk write fires directoryChanged and triggers a spurious refreshList. Wrap it in a DirWatcherManager::Guard like the other meta-file editing paths.
1 parent 04c9b33 commit abaf343

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/downloadmanager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,6 +1270,7 @@ void DownloadManager::openMetaFile(int index)
12701270
shell::Open(metaPath);
12711271
return;
12721272
} else {
1273+
DirWatcherManager::Guard dirWatcherGuard = m_DirWatcher.scopedGuard();
12731274
QSettings metaFile(metaPath, QSettings::IniFormat);
12741275
metaFile.setValue("removed", false);
12751276
}

0 commit comments

Comments
 (0)