@matheusbsbs / matheus-bagliano / commits / 478afad697
Fork 0

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>

Pat Thoyts committed Apr 15, 2009 at 17:14 UTC 478afad697e58433f34d69b5fe08511405f23506
1 file changed +1
gitk
+1
@@ -11128,6 +11128,7 @@ catch {
11128 # wait for the window to become visible
11129 tkwait visibility .
11130 wm title . "[file tail $argv0]: [file tail [pwd]]"
11131 +update
11132 readrefs
11133
11134 if {$cmdline_files ne {} || $revtreeargs ne {} || $revtreeargscmd ne {}} {