diff options
author | fvogel <fvogelnew1@free.fr> | 2016-05-22 19:56:27 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2016-05-22 19:56:27 (GMT) |
commit | 665f4a6fc7e695c4f577d1c79f736ac46760020a (patch) | |
tree | c0e19f0fd9780994ce3ab84b4ef485a02a50dcc6 | |
parent | 897404e4dde17e5f4c5c50f9cc734b02c2158835 (diff) | |
download | tk-665f4a6fc7e695c4f577d1c79f736ac46760020a.zip tk-665f4a6fc7e695c4f577d1c79f736ac46760020a.tar.gz tk-665f4a6fc7e695c4f577d1c79f736ac46760020a.tar.bz2 |
Fixed [109865fa01] - ttk::menubutton has an unprotected winfo
-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 -- |