mirror of
https://github.com/KDE/konsole.git
synced 2026-05-04 04:33:38 -04:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user