mirror of
https://github.com/leozide/leocad
synced 2025-01-14 08:01:45 +01:00
Update focus view correctly.
This commit is contained in:
parent
348b83155e
commit
6c6c5c8f6d
1 changed files with 1 additions and 7 deletions
|
@ -72,7 +72,6 @@ void lcModelTabWidget::ResetLayout()
|
|||
TopWidget->deleteLater();
|
||||
|
||||
Widget->setFocus();
|
||||
SetActiveView((View*)((lcQGLWidget*)Widget)->GetView());
|
||||
}
|
||||
|
||||
void lcModelTabWidget::Clear()
|
||||
|
@ -1543,10 +1542,7 @@ void lcMainWindow::RestoreTabLayout(const QByteArray& TabLayout)
|
|||
LoadWidget(TabWidget ? TabWidget->layout()->itemAt(0)->widget() : nullptr);
|
||||
|
||||
if (ActiveWidget && TabWidget)
|
||||
{
|
||||
View* ActiveView = (View*)((lcQGLWidget*)ActiveWidget)->GetView();
|
||||
TabWidget->SetActiveView(ActiveView);
|
||||
}
|
||||
ActiveWidget->setFocus();
|
||||
}
|
||||
|
||||
if (!ModelAdded)
|
||||
|
@ -1630,7 +1626,6 @@ void lcMainWindow::SetCurrentModelTab(lcModel* Model)
|
|||
ViewWidget->show();
|
||||
ViewWidget->setFocus();
|
||||
NewView->ZoomExtents();
|
||||
SetActiveView(NewView);
|
||||
}
|
||||
|
||||
void lcMainWindow::ResetCameras()
|
||||
|
@ -1897,7 +1892,6 @@ void lcMainWindow::RemoveActiveView()
|
|||
}
|
||||
|
||||
OtherWidget->setFocus();
|
||||
SetActiveView((View*)((lcQGLWidget*)OtherWidget)->GetView());
|
||||
}
|
||||
|
||||
void lcMainWindow::ResetViews()
|
||||
|
|
Loading…
Reference in a new issue