From 1227c4bfb5d2fe4f19b0efe43a06a458bfcd0270 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 14 Sep 2014 11:50:27 +0000 Subject: fix for running dbchecker from Profile Manager git-svn-id: http://svn.miranda-ng.org/main/trunk@10443 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/database/profilemanager.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/modules/database/profilemanager.cpp b/src/modules/database/profilemanager.cpp index 9d7d738799..5952c7e97b 100644 --- a/src/modules/database/profilemanager.cpp +++ b/src/modules/database/profilemanager.cpp @@ -433,7 +433,6 @@ static void ExecuteMenu(HWND hwndDlg, LPARAM lParam) lvht.pt.y = GET_Y_LPARAM(lParam); ScreenToClient(hwndList, &lvht.pt); - bool bConvert = false; if (ListView_HitTest(hwndList, &lvht) == -1) return; @@ -446,8 +445,7 @@ static void ExecuteMenu(HWND hwndDlg, LPARAM lParam) if (!ListView_GetItem(hwndList, &tvi)) return; - if (tvi.iImage == 2) - bConvert = true; + bool bConvert = (tvi.iImage == 2); lvht.pt.x = GET_X_LPARAM(lParam); lvht.pt.y = GET_Y_LPARAM(lParam); @@ -490,7 +488,6 @@ static INT_PTR CALLBACK DlgProfileSelect(HWND hwndDlg, UINT msg, WPARAM wParam, switch (msg) { case WM_INITDIALOG: TranslateDialogDefault(hwndDlg); - EnsureCheckerLoaded(true); { dat = (DlgProfData*)lParam; SetWindowLongPtr(hwndDlg, GWLP_USERDATA, (LONG_PTR)dat); @@ -861,9 +858,13 @@ static int AddProfileManagerPage(struct DetailsPageInit *opi, OPTIONSDIALOGPAGE int getProfileManager(PROFILEMANAGERDATA *pd) { + EnsureCheckerLoaded(true); + DetailsPageInit opi = { 0 }; - OPTIONSDIALOGPAGE odp = { sizeof(odp) }; + OPTIONSDIALOGPAGE odp = { 0 }; + odp.cbSize = sizeof(odp); + odp.pszTitle = LPGEN("My profiles"); odp.pfnDlgProc = DlgProfileSelect; odp.pszTemplate = MAKEINTRESOURCEA(IDD_PROFILE_SELECTION); -- cgit v1.2.3