diff options
author | George Hazan <george.hazan@gmail.com> | 2014-09-14 11:50:27 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-09-14 11:50:27 +0000 |
commit | 1227c4bfb5d2fe4f19b0efe43a06a458bfcd0270 (patch) | |
tree | d43913e5b3c86641712b66c641260ff0d2e0e33b /src/modules | |
parent | fd748a24ce28cbafa4c4417878751a8f0884d111 (diff) |
fix for running dbchecker from Profile Manager
git-svn-id: http://svn.miranda-ng.org/main/trunk@10443 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/database/profilemanager.cpp | 11 |
1 files 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);
|