summaryrefslogtreecommitdiff
path: root/protocols/Weather/src/weather_userinfo.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-01-24 14:41:41 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-01-24 14:41:41 +0300
commit781beb2c50cea2ce2a3da799d8e4a70fa21d6fab (patch)
tree8715df52e062fbb03b789f448d3538c4a3848c63 /protocols/Weather/src/weather_userinfo.cpp
parentdc4281db051303af1f09bc151d00d64d010ce3f2 (diff)
Weather: INI file list removed
Diffstat (limited to 'protocols/Weather/src/weather_userinfo.cpp')
-rw-r--r--protocols/Weather/src/weather_userinfo.cpp19
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;