aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPat Thoyts <patthoyts@users.sourceforge.net>2009-04-15 17:14:03 +0100
committerPaul Mackerras <paulus@samba.org>2009-04-17 22:52:15 +1000
commit478afad697e58433f34d69b5fe08511405f23506 (patch)
treee9e9b3880383fe0118dcce1de464932d5711b23f
parentb575b2f1f420bf82557beab0f4ec12e5aa832bea (diff)
downloadgit-478afad697e58433f34d69b5fe08511405f23506.tar.gz
git-478afad697e58433f34d69b5fe08511405f23506.tar.xz
gitk: Avoid crash if closed while reading references
As recorded in msysGit issue 125, if the user closes gitk while it reports itself as still reading references then Tk will crash in the geometry management code. This has been fixed for Tk 8.5.7 and above. This patch avoids the problem by flushing outstanding geometry events before calling the readrefs procedure. See also http://code.google.com/p/msysgit/issues/detail?id=125 Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net> Signed-off-by: Paul Mackerras <paulus@samba.org>
-rwxr-xr-xgitk1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitk b/gitk
index 488286f6a..dca1741c7 100755
--- a/gitk
+++ b/gitk
@@ -11128,6 +11128,7 @@ catch {
# wait for the window to become visible
tkwait visibility .
wm title . "[file tail $argv0]: [file tail [pwd]]"
+update
readrefs
if {$cmdline_files ne {} || $revtreeargs ne {} || $revtreeargscmd ne {}} {