From f57ca1efe5b2e6c7ca7c2a08b0c342e2547c826c Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Wed, 20 Feb 2008 21:48:21 -0500 Subject: git-gui: Ensure all spellchecker 'class' variables are initialized If we somehow managed to get our spellchecker instance created but aspell wasn't startable we may not finish _connect and thus may find one or more of our fields was not initialized in the instance. If we have an instance but no version, there is no reason to show a version to the user in our about dialog. We effectively have no spellchecker available. Signed-off-by: Shawn O. Pearce --- lib/about.tcl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/about.tcl') diff --git a/lib/about.tcl b/lib/about.tcl index 47be8eb97a..241ab892cd 100644 --- a/lib/about.tcl +++ b/lib/about.tcl @@ -41,7 +41,8 @@ proc do_about {} { append v "Tcl version $tcl_patchLevel" append v ", Tk version $tk_patchLevel" } - if {[info exists ui_comm_spell]} { + if {[info exists ui_comm_spell] + && [$ui_comm_spell version] ne {}} { append v "\n" append v [$ui_comm_spell version] } -- cgit v1.3