Commit 6d6d3118 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Fix a probable crash when fullscreen controllers are disabled.

parent b50c1cab
...@@ -829,7 +829,7 @@ void MainInterface::doComponentsUpdate() ...@@ -829,7 +829,7 @@ void MainInterface::doComponentsUpdate()
void MainInterface::toggleAdvanced() void MainInterface::toggleAdvanced()
{ {
controls->toggleAdvanced(); controls->toggleAdvanced();
fullscreenControls->toggleAdvanced(); if( fullscreenControls ) fullscreenControls->toggleAdvanced();
} }
/* Get the visibility status of the controls (hidden or not, advanced or not) */ /* Get the visibility status of the controls (hidden or not, advanced or not) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment