Merge pull request #487 from tomaz82/StartupSystem_fix

Reset "StartupSystem" to "" if the requested system doesn't exist
This commit is contained in:
Jools Wills 2018-09-21 04:25:16 +01:00 committed by GitHub
commit 4ce357c267
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,6 +56,9 @@ void ViewController::goToStart()
return;
}
}
// Requested system doesn't exist
Settings::getInstance()->setString("StartupSystem", "");
}
goToSystemView(SystemData::sSystemVector.at(0));
}