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.
This commit is contained in:
Jekyll Wu
2012-01-16 23:32:13 +08:00
parent dcc57fce24
commit 6bf0fcf565

View File

@@ -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);