mirror of
https://github.com/git/git.git
synced 2024-12-18 06:14:59 +08:00
git-gui: Paper bag fix error dialogs opening over the main window
If the main window is the only toplevel we have open then we don't have a valid grab right now, so we need to assume the best toplevel to use for the parent is ".". Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
parent
aba15f7f59
commit
85ec3e7778
@ -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} {
|
||||
|
Loading…
Reference in New Issue
Block a user