summaryrefslogtreecommitdiff
path: root/lib/error.tcl
diff options
context:
space:
mode:
authorLibravatar Shawn O. Pearce <spearce@spearce.org>2008-02-22 01:40:25 -0500
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2008-02-22 01:40:25 -0500
commitb5e2f805e6bdbaae629399fea92deb053f4ca7cd (patch)
tree420f06c14d8b90a472aeea048bc400f1fed6fada /lib/error.tcl
parentgit-gui: fix typo in lib/spellcheck.tcl (diff)
parentgit-gui: Focus insertion point at end of strings in repository chooser (diff)
downloadtgif-b5e2f805e6bdbaae629399fea92deb053f4ca7cd.tar.xz
Merge branch 'maint'
* maint: git-gui: Focus insertion point at end of strings in repository chooser git-gui: Avoid hardcoded Windows paths in Cygwin package files git-gui: Default TCL_PATH to same location as TCLTK_PATH git-gui: Paper bag fix error dialogs opening over the main window
Diffstat (limited to 'lib/error.tcl')
-rw-r--r--lib/error.tcl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/error.tcl b/lib/error.tcl
index 45800d5493..08a24622c7 100644
--- a/lib/error.tcl
+++ b/lib/error.tcl
@@ -2,7 +2,11 @@
# Copyright (C) 2006, 2007 Shawn Pearce
proc _error_parent {} {
- return [grab current .]
+ set p [grab current .]
+ if {$p eq {}} {
+ return .
+ }
+ return $p
}
proc error_popup {msg} {