Frontend:
authorsmxx
Wed, 17 Feb 2010 17:38:32 +0000
changeset 2820 389e8b286afe
parent 2819 8c3f078bc67d
child 2821 67815ee123d7
Frontend: * Possible fix to engine window losing it's focus while Xfire is active (too sporadic to test)
QTfrontend/hwform.cpp
--- a/QTfrontend/hwform.cpp	Tue Feb 16 03:03:26 2010 +0000
+++ b/QTfrontend/hwform.cpp	Wed Feb 17 17:38:32 2010 +0000
@@ -788,10 +788,12 @@
 				pRegisterServer = 0;
 			}
 			//setVisible(false);
+			setFocusPolicy(Qt::NoFocus);
 			break;
 		}
 		case gsFinished: {
 			//setVisible(true);
+			setFocusPolicy(Qt::StrongFocus);
 			GoBack();
 			Music(ui.pageOptions->CBEnableFrontendMusic->isChecked());
 			if (wBackground) wBackground->startAnimation();
@@ -801,6 +803,7 @@
 		}
 		default: {
 			//setVisible(true);
+			setFocusPolicy(Qt::StrongFocus);
 			quint8 id = ui.Pages->currentIndex();
 			if (id == ID_PAGE_INGAME) {
 				GoBack();