diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2012-08-26 19:11:52 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2012-08-26 19:11:52 +0000 |
commit | 9e3d399e1102744077feaa269af227548dd6db8b (patch) | |
tree | b86178cce17274a989cea8ba3b42a242f830999f /protocols/Weather | |
parent | 9df14d4d6df6f3b2d65eb18c15e5789b383c5998 (diff) |
fixed "More Info" Dialog
git-svn-id: http://svn.miranda-ng.org/main/trunk@1531 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Weather')
-rw-r--r-- | protocols/Weather/weather_data.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/Weather/weather_data.cpp b/protocols/Weather/weather_data.cpp index a0e78f1f93..b1ae960bd7 100644 --- a/protocols/Weather/weather_data.cpp +++ b/protocols/Weather/weather_data.cpp @@ -447,9 +447,6 @@ void DBDataManage(HANDLE hContact, WORD Mode, WPARAM wParam, LPARAM lParam) case WDBM_DETAILDISPLAY:
{
- HWND hList = GetDlgItem((HWND)wParam, IDC_DATALIST);
- LV_ITEM lvi = { 0 };
-
// skip the "WeatherInfo" variable
if (strcmp(wc.value[wc.current], "WeatherInfo") == 0 ||
strcmp(wc.value[wc.current], "Ignore") == 0 ||
@@ -460,9 +457,11 @@ void DBDataManage(HANDLE hContact, WORD Mode, WPARAM wParam, LPARAM lParam) continue;
}
+ HWND hList = GetDlgItem((HWND)wParam, IDC_DATALIST);
+ LV_ITEM lvi = { 0 };
lvi.mask = LVIF_TEXT | LVIF_PARAM;
lvi.iItem = 0;
- lvi.iSubItem = 1;
+ lvi.iSubItem = 0;
lvi.lParam = (LPARAM)wc.current;
lvi.pszText = TranslateTS( _A2T(wc.value[wc.current] ));
lvi.iItem = ListView_InsertItem(hList, &lvi);
|