summaryrefslogtreecommitdiffstats
path: root/library/ttk/menubutton.tcl
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-05-22 19:56:27 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-05-22 19:56:27 (GMT)
commitc130191cfa0f21c3ab4ac1092745bc5c06a42e7a (patch)
treec0e19f0fd9780994ce3ab84b4ef485a02a50dcc6 /library/ttk/menubutton.tcl
parent2f150c8d18e576998e9d30ac08c562a1365b3051 (diff)
downloadtk-c130191cfa0f21c3ab4ac1092745bc5c06a42e7a.zip
tk-c130191cfa0f21c3ab4ac1092745bc5c06a42e7a.tar.gz
tk-c130191cfa0f21c3ab4ac1092745bc5c06a42e7a.tar.bz2
Fixed [109865fa01] - ttk::menubutton has an unprotected winfo
Diffstat (limited to 'library/ttk/menubutton.tcl')
-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 --