X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-gui%2Flib%2Fclass.tcl;h=dc2141192a21e7416268cc94beda78d6ceb8f86f;hb=bc9c0248a5cf184756ba562d6c452cace8863517;hp=24e8cecea46d3da6d94b04917a2776e541c234f3;hpb=941fd1c041204f30279c175ca9b7252ffcb52ba2;p=git.git diff --git a/git-gui/lib/class.tcl b/git-gui/lib/class.tcl index 24e8cecea..dc2141192 100644 --- a/git-gui/lib/class.tcl +++ b/git-gui/lib/class.tcl @@ -148,11 +148,12 @@ proc make_toplevel {t w args} { } } - if {[winfo ismapped .]} { + if {$::root_exists || [winfo ismapped .]} { regsub -all {::} $this {__} w set top .$w set pfx $top toplevel $top + set ::root_exists 1 } else { set top . set pfx {}