From e3805d93fbc3afe60bd584093b14130088e6398d Mon Sep 17 00:00:00 2001
From: Vincent Texier <vit@free.fr>
Date: Sat, 24 Jan 2015 12:34:45 +0100
Subject: [PATCH] Wot view : disable context menu on wallet node

---
 src/cutecoin/gui/views/wot.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/cutecoin/gui/views/wot.py b/src/cutecoin/gui/views/wot.py
index 20fac1cc..36baa15d 100644
--- a/src/cutecoin/gui/views/wot.py
+++ b/src/cutecoin/gui/views/wot.py
@@ -241,9 +241,13 @@ class Node(QGraphicsEllipseItem):
     def contextMenuEvent(self, event: QGraphicsSceneContextMenuEvent):
         """
         Right click on node to show node menu
+        Except on wallet node
 
         :param event: scene context menu event
         """
+        # no menu on the wallet node
+        if self.status_wallet:
+            return None
         # create node context menus
         self.menu = QMenu()
         # action add identity as contact
-- 
GitLab