From 4e80c3883e174d5adb6b8edbc912be0224f7a248 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=BDejdl?= Date: Sat, 11 May 2019 06:54:51 +0200 Subject: [PATCH] return Edit... to the main popup window to speed up editing --- tkined/library/Tool.tcl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tkined/library/Tool.tcl b/tkined/library/Tool.tcl index 6bfcde6..6d6384d 100644 --- a/tkined/library/Tool.tcl +++ b/tkined/library/Tool.tcl @@ -97,6 +97,10 @@ proc Tool__MakePopup { popup id } { $popup.attr add command -label "Edit..." \ -command "Tool__EditAttribute $id" } + if {[$id type] != "LINK" || [$id attribute] != ""} { + $popup add command -label "Edit..." \ + -command "Tool__EditAttribute $id" + } if {[$id type] != "LINK"} { $popup add command -label "Set Label..." \ -command "Tool__LabelAttribute $id"