summaryrefslogtreecommitdiffstats
path: root/library/ttk/menubutton.tcl
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2016-07-21 20:06:34 (GMT)
committerdgp <dgp@noemail.net>2016-07-21 20:06:34 (GMT)
commit6e21967c0573ca7a2744d318dc3ee0222875e273 (patch)
treecd7aaee28e7876e8bfdd77e835c534b13cbe5f98 /library/ttk/menubutton.tcl
parent5ad0f56fe1463cf9fb13dee7ee3319665e7d8fd6 (diff)
parent6ddcf9ad5374d63e332d9cf75792b0eb445efd5e (diff)
downloadtk-6e21967c0573ca7a2744d318dc3ee0222875e273.zip
tk-6e21967c0573ca7a2744d318dc3ee0222875e273.tar.gz
tk-6e21967c0573ca7a2744d318dc3ee0222875e273.tar.bz2
merge 8.6
FossilOrigin-Name: 0cb77e7f99a32d51ab693f35524f4e7138da07b4
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 --