diff options
author | fvogel <fvogelnew1@free.fr> | 2016-05-25 19:35:36 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2016-05-25 19:35:36 (GMT) |
commit | 6ceb9aa8c5ae688f8f59178fb7b1139ce657b1ae (patch) | |
tree | 8f45747111a0be81d61caec3707a94f5eaf3d8a3 /library | |
parent | 2f150c8d18e576998e9d30ac08c562a1365b3051 (diff) | |
parent | a129a2159a084a7ead331d54273f5cf2a3a7a961 (diff) | |
download | tk-6ceb9aa8c5ae688f8f59178fb7b1139ce657b1ae.zip tk-6ceb9aa8c5ae688f8f59178fb7b1139ce657b1ae.tar.gz tk-6ceb9aa8c5ae688f8f59178fb7b1139ce657b1ae.tar.bz2 |
Fixed [109865fa01] - ttk::menubutton unsafe wrt widget destruction
Diffstat (limited to 'library')
-rw-r--r-- | library/ttk/menubutton.tcl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/ttk/menubutton.tcl b/library/ttk/menubutton.tcl index 093bb02..2be064c 100644 --- a/library/ttk/menubutton.tcl +++ b/library/ttk/menubutton.tcl @@ -57,7 +57,7 @@ if {[tk windowingsystem] eq "x11"} { bind TMenubutton <ButtonPress-1> \ { %W state pressed ; ttk::menubutton::Popdown %W } bind TMenubutton <ButtonRelease-1> \ - { %W state !pressed } + { if {[winfo exists %W]} { %W state !pressed } } } # PostPosition -- |