equal
deleted
inserted
replaced
786 { |
786 { |
787 pRegisterServer->unregister(); |
787 pRegisterServer->unregister(); |
788 pRegisterServer = 0; |
788 pRegisterServer = 0; |
789 } |
789 } |
790 //setVisible(false); |
790 //setVisible(false); |
|
791 setFocusPolicy(Qt::NoFocus); |
791 break; |
792 break; |
792 } |
793 } |
793 case gsFinished: { |
794 case gsFinished: { |
794 //setVisible(true); |
795 //setVisible(true); |
|
796 setFocusPolicy(Qt::StrongFocus); |
795 GoBack(); |
797 GoBack(); |
796 Music(ui.pageOptions->CBEnableFrontendMusic->isChecked()); |
798 Music(ui.pageOptions->CBEnableFrontendMusic->isChecked()); |
797 if (wBackground) wBackground->startAnimation(); |
799 if (wBackground) wBackground->startAnimation(); |
798 GoToPage(ID_PAGE_GAMESTATS); |
800 GoToPage(ID_PAGE_GAMESTATS); |
799 if (hwnet) hwnet->gameFinished(); |
801 if (hwnet) hwnet->gameFinished(); |
800 break; |
802 break; |
801 } |
803 } |
802 default: { |
804 default: { |
803 //setVisible(true); |
805 //setVisible(true); |
|
806 setFocusPolicy(Qt::StrongFocus); |
804 quint8 id = ui.Pages->currentIndex(); |
807 quint8 id = ui.Pages->currentIndex(); |
805 if (id == ID_PAGE_INGAME) { |
808 if (id == ID_PAGE_INGAME) { |
806 GoBack(); |
809 GoBack(); |
807 Music(ui.pageOptions->CBEnableFrontendMusic->isChecked()); |
810 Music(ui.pageOptions->CBEnableFrontendMusic->isChecked()); |
808 if (wBackground) wBackground->startAnimation(); |
811 if (wBackground) wBackground->startAnimation(); |