提交 85ec3e77 编写于 作者: S Shawn O. Pearce

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: NShawn O. Pearce <spearce@spearce.org>
上级 aba15f7f
......@@ -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} {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册