From 6bf0fcf565be8877cdc9ba1e9703f35addee9b0b Mon Sep 17 00:00:00 2001 From: Jekyll Wu Date: Mon, 16 Jan 2012 23:32:13 +0800 Subject: [PATCH] Remove two unnecessary calls to the applyProfileToContainer() method. That method only needs to be called once when the Container is created, or when the related settings has changed. --- src/ViewManager.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/ViewManager.cpp b/src/ViewManager.cpp index 22e4f31c2..7b942df1f 100644 --- a/src/ViewManager.cpp +++ b/src/ViewManager.cpp @@ -441,7 +441,6 @@ void ViewManager::splitView(Qt::Orientation orientation) // session in the previous container if (!container) { container = createContainer(profile); - applyProfileToContainer(container, profile); } container->addView(display, properties); @@ -562,10 +561,6 @@ void ViewManager::createView(Session* session, ViewContainer* container, int ind const Profile::Ptr profile = SessionManager::instance()->sessionProfile(session); applyProfileToView(display, profile); - bool isFirst = _sessionMap.isEmpty(); - if (isFirst) - applyProfileToContainer(container, profile); - // set initial size display->setSize(80, 40);