mirror of
https://github.com/ModOrganizer2/modorganizer.git
synced 2026-07-27 13:58:24 -07:00
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.
This commit is contained in:
@@ -1278,6 +1278,7 @@ void DownloadManager::openMetaFile(int index)
|
||||
shell::Open(metaPath);
|
||||
return;
|
||||
} else {
|
||||
DirWatcherManager::Guard dirWatcherGuard = m_DirWatcher.scopedGuard();
|
||||
QSettings metaFile(metaPath, QSettings::IniFormat);
|
||||
metaFile.setValue("removed", false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user