summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorfvogel <fvogel@noemail.net>2016-05-25 19:36:21 (GMT)
committerfvogel <fvogel@noemail.net>2016-05-25 19:36:21 (GMT)
commit425a61845fa7f0bf581991d86a894848b6a73ffd (patch)
tree39ad7f79f0681e3b934d7595415c6db968618e2c /library
parentd632f3291a382f5b7f35c2078cceddbb3625bcfa (diff)
parentf7ea9a9691574a84c77bb596181e0fe013040108 (diff)
downloadtk-425a61845fa7f0bf581991d86a894848b6a73ffd.zip
tk-425a61845fa7f0bf581991d86a894848b6a73ffd.tar.gz
tk-425a61845fa7f0bf581991d86a894848b6a73ffd.tar.bz2
Fixed [109865fa01] - ttk::menubutton unsafe wrt widget destruction
FossilOrigin-Name: 9124c4d887370dea34b8d4a9f22e8ada21f43132
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 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 --