summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLibravatar Alexander Gavrilov <angavrilov@gmail.com>2008-11-13 21:52:52 +0300
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2008-11-16 14:02:13 -0800
commit941930732fc0bbffbd19e9fa09fe00bc1512a3a7 (patch)
treef9178d99057521fab4508e289c214febc0a88eb7 /lib
parentUpdate the po template (diff)
downloadtgif-941930732fc0bbffbd19e9fa09fe00bc1512a3a7.tar.xz
git-gui: Fix the search bar destruction handler.
Since delete_this is an ordinary function, it should not be passed to cb; otherwise it produces errors when blame windows are closed. Unfortunately, it is not noticeable when blame is shown in the master window, so I missed this bug. Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/search.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/search.tcl b/lib/search.tcl
index 32c8656fc9..b371e9a30a 100644
--- a/lib/search.tcl
+++ b/lib/search.tcl
@@ -35,7 +35,7 @@ constructor new {i_w i_text args} {
trace add variable searchstring write [cb _incrsearch_cb]
- bind $w <Destroy> [cb delete_this]
+ bind $w <Destroy> [list delete_this $this]
return $this
}