summaryrefslogtreecommitdiff
path: root/protocols/Weather/src/weather_userinfo.cpp
diff options
context:
space:
mode:
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;