From 60fdf0f9935fba5a975a8797a34df3e3af8a3be1 Mon Sep 17 00:00:00 2001 From: Jekyll Wu Date: Mon, 15 Aug 2011 10:44:12 +0800 Subject: [PATCH] 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 676df0c26e5c01652da64690756b74fbe180a080. --- src/ViewManager.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/ViewManager.cpp b/src/ViewManager.cpp index 7a485fe29..5feab3833 100644 --- a/src/ViewManager.cpp +++ b/src/ViewManager.cpp @@ -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 views = container->views(); - index = views.indexOf(view) + 1; - } - - createView(session, container, index); + createView(session,container,-1); } }