mirror of
https://github.com/leozide/leocad
synced 2025-01-30 20:34:56 +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
|
View* GetActiveView() const
|
||||||
{
|
{
|
||||||
lcModelTabWidget* CurrentTab = (lcModelTabWidget*)mModelTabWidget->currentWidget();
|
lcModelTabWidget* CurrentTab = mModelTabWidget ? (lcModelTabWidget*)mModelTabWidget->currentWidget() : nullptr;
|
||||||
return CurrentTab ? CurrentTab->GetActiveView() : nullptr;
|
return CurrentTab ? CurrentTab->GetActiveView() : nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue