# HG changeset patch # User alfadur # Date 1524008621 14400 # Node ID 3f2ee2f9b51d53f3de50c812aef87f3a681c0328 # Parent e8801220c13fb0fe5690e2ce18b86eb5643e49ac fix/workaround for fullscreen crash in 0.9.24 diff -r e8801220c13f -r 3f2ee2f9b51d QTfrontend/hwform.cpp --- a/QTfrontend/hwform.cpp Tue Apr 17 15:21:52 2018 -0400 +++ b/QTfrontend/hwform.cpp Tue Apr 17 19:43:41 2018 -0400 @@ -231,10 +231,7 @@ pageSwitchMapper = new QSignalMapper(this); connect(pageSwitchMapper, SIGNAL(mapped(int)), this, SLOT(GoToPage(int))); - - connect(config, SIGNAL(frontendFullscreen(bool)), this, SLOT(onFrontendFullscreen(bool))); - onFrontendFullscreen(config->isFrontendFullscreen()); - + connect(ui.pageMain->BtnSinglePlayer, SIGNAL(clicked()), pageSwitchMapper, SLOT(map())); pageSwitchMapper->setMapping(ui.pageMain->BtnSinglePlayer, ID_PAGE_SINGLEPLAYER); @@ -380,6 +377,9 @@ PagesStack.push(ID_PAGE_MAIN); ((AbstractPage*)ui.Pages->widget(ID_PAGE_MAIN))->triggerPageEnter(); GoBack(); + + connect(config, SIGNAL(frontendFullscreen(bool)), this, SLOT(onFrontendFullscreen(bool))); + onFrontendFullscreen(config->isFrontendFullscreen()); } void HWForm::onFrontendFullscreen(bool value)