From e86b4203b9b2db143477ef347d0dfc836ef0214b Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Tue, 27 Oct 2015 16:07:59 +0100 Subject: [PATCH] IgnoreFiles: Fix the socket API would not load the new custom ignored files #3496 We did not flush or closed the file after having modified it from the UI. So when the socket api was reloading it, it wouldn't be able to load the newly added rules --- src/gui/ignorelisteditor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/ignorelisteditor.cpp b/src/gui/ignorelisteditor.cpp index b172bd3b2..7b5acd158 100644 --- a/src/gui/ignorelisteditor.cpp +++ b/src/gui/ignorelisteditor.cpp @@ -110,6 +110,7 @@ void IgnoreListEditor::slotUpdateLocalIgnoreList() QMessageBox::warning(this, tr("Could not open file"), tr("Cannot write changes to '%1'.").arg(ignoreFile)); } + ignores.close(); //close the file before reloading stuff. FolderMan * folderMan = FolderMan::instance(); -- 2.30.2