fix/workaround for fullscreen crash in 0.9.24
authoralfadur
Tue, 17 Apr 2018 19:43:41 -0400
changeset 13335 3f2ee2f9b51d
parent 13334 e8801220c13f
child 13336 279be12a586b
fix/workaround for fullscreen crash in 0.9.24
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)