summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorfvogel <fvogel@noemail.net>2016-05-22 19:56:27 (GMT)
committerfvogel <fvogel@noemail.net>2016-05-22 19:56:27 (GMT)
commitf194ea9b2f5dfe8ea0ff878480378641a6293c99 (patch)
treec0e19f0fd9780994ce3ab84b4ef485a02a50dcc6 /library
parentb97148187546762a4c2cc477c247a3dbffc59d4e (diff)
downloadtk-f194ea9b2f5dfe8ea0ff878480378641a6293c99.zip
tk-f194ea9b2f5dfe8ea0ff878480378641a6293c99.tar.gz
tk-f194ea9b2f5dfe8ea0ff878480378641a6293c99.tar.bz2
Fixed [109865fa01] - ttk::menubutton has an unprotected winfo
FossilOrigin-Name: 6545d24edde23e185a09a1f89e5aa2b3ecad909d
Diffstat (limited to 'library')
-rw-r--r--library/ttk/menubutton.tcl2
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 --