summaryrefslogtreecommitdiff
path: root/plugins/Popup/src/actions.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-10-26 12:12:58 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-10-26 12:12:58 +0000
commitaaf3d972a3b32623f7e2984382adc5ca633bb280 (patch)
treef866e46edb71fca99e57ed08d8bfe34cbb3e86fc /plugins/Popup/src/actions.cpp
parent5940fca1e79e3e2a53abfcc9805bfc631fa281da (diff)
attemp to fix crash in Popups history
git-svn-id: http://svn.miranda-ng.org/main/trunk@2084 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Popup/src/actions.cpp')
-rw-r--r--plugins/Popup/src/actions.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Popup/src/actions.cpp b/plugins/Popup/src/actions.cpp
index 9aa0506d21..395599d0c1 100644
--- a/plugins/Popup/src/actions.cpp
+++ b/plugins/Popup/src/actions.cpp
@@ -62,13 +62,13 @@ void LoadActions()
};
- for (int i = 0; i < SIZEOF(actions); ++i)
+ for (int i=0; i < SIZEOF(actions); ++i)
RegisterAction(&actions[i]);
}
void UnloadActions()
{
-// for (int i = 0; i < gActions.getCount(); ++i)
+// for (int i=0; i < gActions.getCount(); ++i)
// delete gActions[i];
gActions.destroy();
}
@@ -329,7 +329,7 @@ INT_PTR CALLBACK DlgProcPopupActions(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
SendMessage(GetParent(hwnd), PSM_CHANGED,0,0);
BOOL enabled = (PopUpOptions.actions&ACT_ENABLE) ? TRUE : FALSE;
- for (int i = 0; i < SIZEOF(controls); ++i)
+ for (int i=0; i < SIZEOF(controls); ++i)
EnableWindow(GetDlgItem(hwnd, controls[i]), enabled);
break;
}
@@ -402,7 +402,7 @@ INT_PTR CALLBACK DlgProcPopupActions(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
{
DBWriteContactSettingDword(NULL, MODULNAME, "Actions", PopUpOptions.actions);
HWND hwndList = GetDlgItem(hwnd, IDC_ACTIONS);
- for (int i = 0; i < gActions.getCount(); ++i)
+ for (int i=0; i < gActions.getCount(); ++i)
{
gActions[i]->flags = (ListView_GetItemState(hwndList, i, LVIS_STATEIMAGEMASK) == 0x2000) ? PAF_ENABLED : 0;
DBWriteContactSettingByte(NULL, "PopUpActions", gActions[i]->lpzTitle, (gActions[i]->flags&PAF_ENABLED) ? 1 : 0);