summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6f62b4f)
raw | patch | inline | side by side (parent: 6f62b4f)
author | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 18 Jul 2007 02:45:53 +0000 (22:45 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 18 Jul 2007 02:45:53 +0000 (22:45 -0400) |
If we have more than our desired number of objects and we try to
open the "Do you want to repack now?" dialog we cannot include a
-parent . argument if the main window has not been mapped yet.
On Mac OS X it appears this window isn't mapped right away, so we
had better hang avoid including it.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
open the "Do you want to repack now?" dialog we cannot include a
-parent . argument if the main window has not been mapped yet.
On Mac OS X it appears this window isn't mapped right away, so we
had better hang avoid including it.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/error.tcl | patch | blob | history |
diff --git a/lib/error.tcl b/lib/error.tcl
index d0253ae2ffa72e491784434ff6ad98ed675ff10c..16a22187b26760963069bef14673b1791b311c12 100644 (file)
--- a/lib/error.tcl
+++ b/lib/error.tcl
if {[reponame] ne {}} {
append title " ([reponame])"
}
- return [tk_messageBox \
- -parent . \
+ set cmd [list tk_messageBox \
-icon question \
-type yesno \
-title $title \
-message $msg]
+ if {[winfo ismapped .]} {
+ lappend cmd -parent .
+ }
+ eval $cmd
}
proc hook_failed_popup {hook msg} {