mirror of
https://github.com/leozide/leocad
synced 2025-01-18 22:26:44 +01:00
Fixed crash when gamepads are enabled. Fixes #268.
This commit is contained in:
parent
5dff72cf25
commit
9811fc860e
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ public:
|
|||
|
||||
View* GetActiveView() const
|
||||
{
|
||||
lcModelTabWidget* CurrentTab = (lcModelTabWidget*)mModelTabWidget->currentWidget();
|
||||
lcModelTabWidget* CurrentTab = mModelTabWidget ? (lcModelTabWidget*)mModelTabWidget->currentWidget() : nullptr;
|
||||
return CurrentTab ? CurrentTab->GetActiveView() : nullptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue