diff --git a/UI/CustomButtonMappingScreen.cpp b/UI/CustomButtonMappingScreen.cpp index 8039a7badb..5055a39b46 100644 --- a/UI/CustomButtonMappingScreen.cpp +++ b/UI/CustomButtonMappingScreen.cpp @@ -139,13 +139,13 @@ void CustomButtonMappingScreen::CreateViews() { customKeyImages[cfg->image].i, customKeyImages[cfg->image].r, customKeyShapes[cfg->shape].f, customKeyShapes[cfg->shape].r, 62, 82)); root__->Add(leftColumn); - rightScroll_ = new ScrollView(ORIENT_VERTICAL, new LinearLayoutParams(WRAP_CONTENT, WRAP_CONTENT, 1.0f)); + ScrollView *rightScroll = new ScrollView(ORIENT_VERTICAL, new LinearLayoutParams(WRAP_CONTENT, WRAP_CONTENT, 1.0f)); leftColumn->Add(new Spacer(new LinearLayoutParams(1.0f))); leftColumn->Add(new Choice(di->T("Back")))->OnClick.Handle(this, &UIScreen::OnBack); - root__->Add(rightScroll_); + root__->Add(rightScroll); LinearLayout *vertLayout = new LinearLayout(ORIENT_VERTICAL); - rightScroll_->Add(vertLayout); + rightScroll->Add(vertLayout); vertLayout->Add(new ItemHeader(co->T("Button style"))); vertLayout->Add(new CheckBox(show, co->T("Visible"))); diff --git a/UI/CustomButtonMappingScreen.h b/UI/CustomButtonMappingScreen.h index 56b6996111..a41013438f 100644 --- a/UI/CustomButtonMappingScreen.h +++ b/UI/CustomButtonMappingScreen.h @@ -41,7 +41,6 @@ private: bool array[ARRAY_SIZE(CustomKeyData::g_customKeyList)]{}; int id_; - UI::ScrollView *rightScroll_ = nullptr; class ChoiceEventHandler{ public: