summaryrefslogtreecommitdiffstats
path: root/library/ttk
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-05-25 19:36:21 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-05-25 19:36:21 (GMT)
commitb03ce9960743ca1b27876129d6eb5ae3e8c978c2 (patch)
tree39ad7f79f0681e3b934d7595415c6db968618e2c /library/ttk
parentb16455219c1d8d926e0d2c7c21bab77f5f3cdeca (diff)
parent6c5b3df17c8246d38c607d370b95043996edce84 (diff)
downloadtk-b03ce9960743ca1b27876129d6eb5ae3e8c978c2.zip
tk-b03ce9960743ca1b27876129d6eb5ae3e8c978c2.tar.gz
tk-b03ce9960743ca1b27876129d6eb5ae3e8c978c2.tar.bz2
Fixed [109865fa01] - ttk::menubutton unsafe wrt widget destruction
Diffstat (limited to 'library/ttk')
-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 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 --