summaryrefslogtreecommitdiff
path: root/plugins/ModernOpt
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-08-11 21:53:02 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-08-11 21:53:02 +0000
commit088403332a5a0a0312441a7938ed66f80126018f (patch)
tree97b23edd153c448f619f811bb869b5f2b964ea93 /plugins/ModernOpt
parent7eead4e8929a8cacffa457a998800f63497aca4f (diff)
more warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@14917 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ModernOpt')
-rw-r--r--plugins/ModernOpt/src/modernopt.cpp24
-rw-r--r--plugins/ModernOpt/src/mopt_ignore.cpp2
2 files changed, 13 insertions, 13 deletions
diff --git a/plugins/ModernOpt/src/modernopt.cpp b/plugins/ModernOpt/src/modernopt.cpp
index 12f11758bf..67b32f6f29 100644
--- a/plugins/ModernOpt/src/modernopt.cpp
+++ b/plugins/ModernOpt/src/modernopt.cpp
@@ -236,8 +236,7 @@ static INT_PTR CALLBACK ModernOptDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam,
break;
case IDC_BTN_EXPERT:
- if (IsWindowEnabled(GetDlgItem(hwndDlg, IDC_BTN_APPLY)))
- {
+ if (IsWindowEnabled(GetDlgItem(hwndDlg, IDC_BTN_APPLY))) {
int idResult = MessageBox(hwndDlg,
TranslateT("You have some unsaved changes here.\n Do you wish to apply settings before switching?"),
_T("Miranda NG"), MB_ICONQUESTION | MB_YESNOCANCEL);
@@ -245,23 +244,22 @@ static INT_PTR CALLBACK ModernOptDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam,
sttNotifyPages(dat, (idResult == IDYES) ? PSN_APPLY : PSN_RESET);
}
- { Utils_SaveWindowPosition(hwndDlg, NULL, "Options", "");
- g_iSectionRestore = dat->iSection;
+ Utils_SaveWindowPosition(hwndDlg, NULL, "Options", "");
+ g_iSectionRestore = dat->iSection;
+ {
struct ModernOptionsObject *obj = (struct ModernOptionsObject *)dat->pObjectList[dat->iPage];
- if (obj->optObject.lpzClassicGroup || obj->optObject.lpzClassicPage)
- {
- OPENOPTIONSDIALOG ood = {0};
+ if (obj->optObject.lpzClassicGroup || obj->optObject.lpzClassicPage) {
+ OPENOPTIONSDIALOG ood = { 0 };
ood.cbSize = sizeof(ood);
ood.pszGroup = obj->optObject.lpzClassicGroup;
ood.pszPage = obj->optObject.lpzClassicPage;
ood.pszTab = obj->optObject.lpzClassicTab;
- HWND hwndOpt = Options_OpenPage(&ood);
- PostMessage(hwndDlg, WM_CLOSE, 0, 0);
+ Options_OpenPage(&ood);
}
- else {
- CallService("Options/OptionsCommand", 0, 0);
- PostMessage(hwndDlg, WM_CLOSE, 0, 0);
- } }
+ else CallService("Options/OptionsCommand", 0, 0);
+
+ PostMessage(hwndDlg, WM_CLOSE, 0, 0);
+ }
break;
case IDOK:
diff --git a/plugins/ModernOpt/src/mopt_ignore.cpp b/plugins/ModernOpt/src/mopt_ignore.cpp
index 8f38231f40..468a63f2f5 100644
--- a/plugins/ModernOpt/src/mopt_ignore.cpp
+++ b/plugins/ModernOpt/src/mopt_ignore.cpp
@@ -34,6 +34,7 @@ void ModernOptIgnore_AddItem(MODERNOPTOBJECT *obj)
SendMessage(g_hwndModernOptIgnore, WM_APP, 0, (LPARAM)obj);
}
+/*
static void ResetListOptions(HWND hwndList)
{
SendMessage(hwndList, CLM_SETHIDEEMPTYGROUPS, 1, 0);
@@ -49,3 +50,4 @@ static void SetAllContactIcons(HWND hwndList, int count)
SendMessage(hwndList,CLM_SETCHECKMARK,hItem,1);
}
}
+*/ \ No newline at end of file