[Pkg-owncloud-commits] [owncloud-client] 364/470: Nautilus plugin: Be more robust against new states from socketapi

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu May 12 16:25:26 UTC 2016


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 f72c7f43bfc1a678ec5430ced17c8aba818ee439
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Wed Apr 20 17:13:06 2016 +0200

    Nautilus plugin: Be more robust against new states from socketapi
    
    Do not bail out if an unknown state comes from SocketApi
---
 shell_integration/nautilus/syncstate.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/shell_integration/nautilus/syncstate.py b/shell_integration/nautilus/syncstate.py
index 63ebae5..9dcfec7 100644
--- a/shell_integration/nautilus/syncstate.py
+++ b/shell_integration/nautilus/syncstate.py
@@ -249,7 +249,9 @@ class SyncStateExtension(GObject.GObject, Nautilus.ColumnProvider, Nautilus.Info
         # print("Action for " + file + ": " + args[0])  # For debug only
         if action == 'STATUS':
             newState = args[0]
-            emblem = Emblems[newState]
+            emblem = 'NOP' # Show nothing if no emblem si defined.
+            if newState in Emblems:
+                emblem = Emblems[newState]
             filename = ':'.join(args[1:])
 
             if emblem:

-- 
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