mirror of
https://github.com/KDE/konsole.git
synced 2026-05-03 04:04:18 -04:00
Revert "New tabs will be placed to the right of the current tab."
This is a temporary revert. Previous commit did not take split view
into account and puts new tab in weird order when used in split view.
A improved version will be commit shortly after.
This reverts commit 676df0c26e.
This commit is contained in:
@@ -609,17 +609,7 @@ void ViewManager::createView(Session* session)
|
||||
while ( containerIter.hasNext() )
|
||||
{
|
||||
ViewContainer* container = containerIter.next();
|
||||
|
||||
int index = -1;
|
||||
QWidget* view = activeView();
|
||||
|
||||
if (view)
|
||||
{
|
||||
QList<QWidget*> views = container->views();
|
||||
index = views.indexOf(view) + 1;
|
||||
}
|
||||
|
||||
createView(session, container, index);
|
||||
createView(session,container,-1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user