Fix a bad nullcheck.

This commit is contained in:
Unknown W. Brackets 2015-01-17 19:49:47 -08:00
parent b6d6f26160
commit 116ddaaaf4
2 changed files with 3 additions and 2 deletions

View File

@ -390,6 +390,7 @@ void SetDefaultKeyMap(DefaultMaps dmap, bool replace) {
case DEFAULT_MAPPING_BLACKBERRY_QWERTY:
SetDefaultKeyMap(DEVICE_ID_KEYBOARD, defaultBlackberryQWERTYKeyMap, ARRAY_SIZE(defaultBlackberryQWERTYKeyMap), replace);
replace = false;
// Intentional fallthrough.
case DEFAULT_MAPPING_PAD:
SetDefaultKeyMap(DEVICE_ID_PAD_0, defaultPadMap, ARRAY_SIZE(defaultPadMap), replace);
break;

View File

@ -64,11 +64,11 @@ public:
virtual void Draw(UIContext &dc);
UI::EventReturn OnClicked(UI::EventParams &e) {
bool temp = false;
if (toggle_) {
*toggle_ = !(*toggle_);
temp = *toggle_;
}
bool temp;
temp = *toggle_;
if (temp) {
activatedCheat = text_;
processFileOn(activatedCheat);