From: Olivier Goffart Date: Tue, 27 Oct 2015 15:07:59 +0000 (+0100) Subject: IgnoreFiles: Fix the socket API would not load the new custom ignored files #3496 X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1498 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e86b4203b9b2db143477ef347d0dfc836ef0214b;p=nextcloud-desktop.git 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 --- 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();