gitk: avoid crash if closed while reading references
commit3d3ecb65e34a62b83648516150ec8a99e1b3ace7
authorPat Thoyts <patthoyts@users.sourceforge.net>
Wed, 15 Apr 2009 16:14:03 +0000 (15 17:14 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 15 Apr 2009 16:48:15 +0000 (15 18:48 +0200)
treecaf4a7a250807010faac979b3f110509e742e7df
parenta36adafee41ad44aa35b419fe1db147964ac7128
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: Johannes Schindelin <johannes.schindelin@gmx.de>
gitk-git/gitk