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:
Jekyll Wu
2011-08-15 10:44:12 +08:00
parent 81001aff31
commit 60fdf0f993

View File

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