diff --git a/reactos/subsys/system/explorer/dialogs/settings.cpp b/reactos/subsys/system/explorer/dialogs/settings.cpp index 11cf849d4fd..02fb0378527 100644 --- a/reactos/subsys/system/explorer/dialogs/settings.cpp +++ b/reactos/subsys/system/explorer/dialogs/settings.cpp @@ -192,16 +192,24 @@ int TaskbarSettingsDlg::Command(int id, int code) break; case ID_SHOW_CLOCK: - XMLBoolRef(XMLPos(g_Globals.get_cfg("desktopbar"),"options"), "show-clock", true).toggle(); + { + XMLBoolRef boolRef1(XMLPos(g_Globals.get_cfg("desktopbar"),"options"), "show-clock", true); + boolRef1.toggle(); SendMessage(g_Globals._hwndDesktopBar, PM_REFRESH_CONFIG, 0, 0); PropSheet_Changed(GetParent(_hwnd), _hwnd); break; + } + case ID_HIDE_INACTIVE_ICONS: - XMLBoolRef(XMLPos(g_Globals.get_cfg("notify-icons"),"options"), "hide-inactive", true).toggle(); + { + XMLBoolRef boolRef2(XMLPos(g_Globals.get_cfg("notify-icons"),"options"), "hide-inactive", true); + boolRef2.toggle(); SendMessage(g_Globals._hwndDesktopBar, PM_REFRESH_CONFIG, 0, 0); PropSheet_Changed(GetParent(_hwnd), _hwnd); break; + } + default: return 1; diff --git a/reactos/subsys/system/explorer/taskbar/traynotify.cpp b/reactos/subsys/system/explorer/taskbar/traynotify.cpp index 9e830d36c8e..1257337bb35 100644 --- a/reactos/subsys/system/explorer/taskbar/traynotify.cpp +++ b/reactos/subsys/system/explorer/taskbar/traynotify.cpp @@ -262,7 +262,8 @@ void NotifyArea::write_config() XMLPos pos = g_Globals.get_cfg(); pos.smart_create("desktopbar"); - XMLBoolRef(XMLPos(pos,"options"), "show-clock") = _hwndClock!=0; + XMLBoolRef boolRef(XMLPos(pos,"options"), "show-clock"); + boolRef = _hwndClock!=0; pos.back(); pos.smart_create("notify-icons");