Codechange: add and use GetString over directly accessing widget_data

This commit is contained in:
Rubidium
2025-01-02 13:05:49 +01:00
committed by rubidium42
parent 56d4d3cc7a
commit 9ac1bad480
14 changed files with 42 additions and 31 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ struct OskWindow : public Window {
assert(parent->querystrings.count(button) != 0);
this->qs = parent->querystrings.find(button)->second;
this->caption = (par_wid->widget_data != STR_NULL) ? par_wid->widget_data : this->qs->caption;
this->caption = (par_wid->GetString() != STR_NULL) ? par_wid->GetString() : this->qs->caption;
this->text_btn = button;
this->text = &this->qs->text;
this->querystrings[WID_OSK_TEXT] = this->qs;