diff options
author | George Hazan <george.hazan@gmail.com> | 2025-01-24 14:41:41 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-01-24 14:41:41 +0300 |
commit | 781beb2c50cea2ce2a3da799d8e4a70fa21d6fab (patch) | |
tree | 8715df52e062fbb03b789f448d3538c4a3848c63 /protocols/Weather/src/weather_userinfo.cpp | |
parent | dc4281db051303af1f09bc151d00d64d010ce3f2 (diff) |
Weather: INI file list removed
Diffstat (limited to 'protocols/Weather/src/weather_userinfo.cpp')
-rw-r--r-- | protocols/Weather/src/weather_userinfo.cpp | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/protocols/Weather/src/weather_userinfo.cpp b/protocols/Weather/src/weather_userinfo.cpp index f24f600874..32cfd15439 100644 --- a/protocols/Weather/src/weather_userinfo.cpp +++ b/protocols/Weather/src/weather_userinfo.cpp @@ -314,19 +314,14 @@ public: int CWeatherProto::UserInfoInit(WPARAM wParam, LPARAM hContact) { - USERINFOPAGE uip = {}; - uip.szTitle.a = m_szModuleName; - uip.position = 100000000; - uip.flags = ODPF_ICON; - uip.dwInitParam = LPARAM(g_plugin.getIconHandle(IDI_ICON)); - - if (hContact == 0) { - uip.pDialog = new WeatherMyDetailsDlg(); - g_plugin.addUserInfo(wParam, &uip); - } - else if (IsMyContact(hContact)) { // check if it is a weather contact + // check if it is a weather contact + if (IsMyContact(hContact)) { + USERINFOPAGE uip = {}; + uip.szTitle.a = m_szModuleName; + uip.position = 100000000; + uip.flags = ODPF_ICON | ODPF_BOLDGROUPS; + uip.dwInitParam = LPARAM(g_plugin.getIconHandle(IDI_ICON)); uip.pDialog = new WeatherUserInfoDlg(); - uip.flags |= ODPF_BOLDGROUPS; g_plugin.addUserInfo(wParam, &uip); } return 0; |