diff --git a/common/lc_mainwindow.cpp b/common/lc_mainwindow.cpp index 1217cec1..04cbf300 100644 --- a/common/lc_mainwindow.cpp +++ b/common/lc_mainwindow.cpp @@ -1618,9 +1618,9 @@ void lcMainWindow::SetCurrentModelTab(lcModel* Model) TabWidget->SetModel(Model); NewView = CreateView(Model); + AddView(NewView); ViewWidget = (lcViewWidget*)TabWidget->layout()->itemAt(0)->widget(); ViewWidget->SetView(NewView); - AddView(NewView); mModelTabWidget->setCurrentWidget(TabWidget); } @@ -1654,8 +1654,6 @@ void lcMainWindow::AddView(View* View) TabWidget->AddView(View); - View->MakeCurrent(); - if (!TabWidget->GetActiveView()) { TabWidget->SetActiveView(View);