diff options
author | fvogel <fvogelnew1@free.fr> | 2016-05-25 19:36:21 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2016-05-25 19:36:21 (GMT) |
commit | e0623338b763404cfa939a5be23f880dbb89c75d (patch) | |
tree | 39ad7f79f0681e3b934d7595415c6db968618e2c /library | |
parent | 9fa60a52311330031fc9c79d6169fa8683e117c1 (diff) | |
parent | 6ceb9aa8c5ae688f8f59178fb7b1139ce657b1ae (diff) | |
download | tk-e0623338b763404cfa939a5be23f880dbb89c75d.zip tk-e0623338b763404cfa939a5be23f880dbb89c75d.tar.gz tk-e0623338b763404cfa939a5be23f880dbb89c75d.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 ad57020..648cdee 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 -- |