diff options
author | fvogel <fvogelnew1@free.fr> | 2018-11-01 21:29:32 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2018-11-01 21:29:32 (GMT) |
commit | a3de6291935a349da5c1e61af13b19df5b1d31ee (patch) | |
tree | 1d953a3d65f4fd7fc05a106369e17da54af49664 /library/ttk | |
parent | a51b941358414d42870614bacdbae8478fcd9f39 (diff) | |
download | tk-a3de6291935a349da5c1e61af13b19df5b1d31ee.zip tk-a3de6291935a349da5c1e61af13b19df5b1d31ee.tar.gz tk-a3de6291935a349da5c1e61af13b19df5b1d31ee.tar.bz2 |
Fix [6b22d436aa]: Treeview ActivateHeading Binding Fails After Widget Deletion. Thanks to Brian O'Hagan for the report and the patch.
Diffstat (limited to 'library/ttk')
-rw-r--r-- | library/ttk/treeview.tcl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/ttk/treeview.tcl b/library/ttk/treeview.tcl index 8772587..1ed87db 100644 --- a/library/ttk/treeview.tcl +++ b/library/ttk/treeview.tcl @@ -120,7 +120,7 @@ proc ttk::treeview::ActivateHeading {w heading} { variable State if {$w != $State(activeWidget) || $heading != $State(activeHeading)} { - if {$State(activeHeading) != {}} { + if {[winfo exists $State(activeWidget)] && $State(activeHeading) != {}} { $State(activeWidget) heading $State(activeHeading) state !active } if {$heading != {}} { |