Fixes an application crash when Revive is not installed.

This commit is contained in:
2017-01-07 18:54:49 +01:00
parent e930a63546
commit 6b65b66f8e
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -24,9 +24,9 @@ namespace advsettings {
const char* key_piGender = "Gender";
void ReviveTabController::initStage1() {
void ReviveTabController::initStage1(bool forceRevivePage) {
m_isOverlayInstalled = vr::VRApplications()->IsApplicationInstalled(appkey_overlay);
if (m_isOverlayInstalled || parent->settingsTabController.forceRevivePage()) {
if (m_isOverlayInstalled || forceRevivePage) {
vr::EVRSettingsError vrSettingsError;
float valuef = vr::VRSettings()->GetFloat(section_revive, key_pixelsPerDisplayPixel, &vrSettingsError);
+1 -1
View File
@@ -73,7 +73,7 @@ namespace advsettings {
std::vector<ReviveControllerProfile> controllerProfiles;
public:
void initStage1();
void initStage1(bool forceRevivePage);
void initStage2(OverlayController* parent, QQuickWindow* widget);
void eventLoopTick();