diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-24 11:46:19 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-24 11:46:19 +0200 |
commit | 5aa5f10fdb386d716d86066b5e392037ffe13914 (patch) | |
tree | 1021ef11bc7344ffcd4de752f63725cd210b8c4c /src/ui/labelwidget.c | |
parent | 86b220841276fc3ddcdebf1eb4bf6543e9aa39b7 (diff) |
Fixes for dynamic language switching
IssueID #192
Diffstat (limited to 'src/ui/labelwidget.c')
-rw-r--r-- | src/ui/labelwidget.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c index 6e8208c4..c34ae3cf 100644 --- a/src/ui/labelwidget.c +++ b/src/ui/labelwidget.c | |||
@@ -86,7 +86,10 @@ static iBool processEvent_LabelWidget_(iLabelWidget *d, const SDL_Event *ev) { | |||
86 | updateSize_LabelWidget(d); | 86 | updateSize_LabelWidget(d); |
87 | } | 87 | } |
88 | else if (isCommand_UserEvent(ev, "lang.changed")) { | 88 | else if (isCommand_UserEvent(ev, "lang.changed")) { |
89 | const iChar oldIcon = d->icon; /* icon will be retained */ | ||
89 | setText_LabelWidget(d, &d->srcLabel); | 90 | setText_LabelWidget(d, &d->srcLabel); |
91 | checkIcon_LabelWidget(d); /* strip it */ | ||
92 | d->icon = oldIcon; | ||
90 | return iFalse; | 93 | return iFalse; |
91 | } | 94 | } |
92 | else if (isCommand_UserEvent(ev, "bindings.changed")) { | 95 | else if (isCommand_UserEvent(ev, "bindings.changed")) { |