[gitg] Initialize panels only when they are not initialized



commit 1480823969830b8df6b80ea97ef6b201b85dbb76
Author: Techlive Zheng <techlivezheng gmail com>
Date:   Fri May 31 00:55:07 2013 +0800

    Initialize panels only when they are not initialized

 gitg/gitg-window.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index f96f8bb..f8cf67e 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -504,7 +504,7 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable, Gtk.
 
                if (view != null)
                {
-                       if (view.stack_panel != null)
+                       if (view.stack_panel != null && d_panels == null)
                        {
                                d_commit_view_switcher.stack = view.stack_panel; //todo
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]