From 9e3d399e1102744077feaa269af227548dd6db8b Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sun, 26 Aug 2012 19:11:52 +0000 Subject: fixed "More Info" Dialog git-svn-id: http://svn.miranda-ng.org/main/trunk@1531 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Weather/weather_data.cpp | 7 +++---- 1 file 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); -- cgit v1.2.3