[Pkg-owncloud-commits] [owncloud-client] 156/484: IgnoreFiles: Fix the socket API would not load the new custom ignored files #3496

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Dec 16 00:37:33 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit e86b4203b9b2db143477ef347d0dfc836ef0214b
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Tue Oct 27 16:07:59 2015 +0100

    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 b172bd3..7b5acd1 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();
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list