summaryrefslogtreecommitdiff
path: root/src/ui/util.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-24 16:24:40 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-24 16:24:40 +0300
commit42bb54ff55ae6e2e2c6bf8a5581d14c1289f0234 (patch)
tree9a4cd949264e98bf47032199779ee27bd1193f58 /src/ui/util.c
parent455a635080a1c1c4b164af3060836f0d8c1b3c1c (diff)
SidebarWidget: List identities as sidebar items
Diffstat (limited to 'src/ui/util.c')
-rw-r--r--src/ui/util.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui/util.c b/src/ui/util.c
index b3178e34..e6067ab9 100644
--- a/src/ui/util.c
+++ b/src/ui/util.c
@@ -689,9 +689,11 @@ iWidget *makeQuestion_Widget(const char *title,
689} 689}
690 690
691void setToggle_Widget(iWidget *d, iBool active) { 691void setToggle_Widget(iWidget *d, iBool active) {
692 setFlags_Widget(d, selected_WidgetFlag, active); 692 if (d) {
693 updateText_LabelWidget((iLabelWidget *) d, 693 setFlags_Widget(d, selected_WidgetFlag, active);
694 collectNewFormat_String("%s", isSelected_Widget(d) ? "YES" : "NO")); 694 updateText_LabelWidget((iLabelWidget *) d,
695 collectNewFormat_String("%s", isSelected_Widget(d) ? "YES" : "NO"));
696 }
695} 697}
696 698
697static iBool toggleHandler_(iWidget *d, const char *cmd) { 699static iBool toggleHandler_(iWidget *d, const char *cmd) {