diff options
author | George Hazan <george.hazan@gmail.com> | 2013-02-20 16:03:04 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-02-20 16:03:04 +0000 |
commit | d7b15f5f89319f1a9077efb50bd3a242a5dc2b52 (patch) | |
tree | a28c1bfd2a40556cb61f95ec67e1d9aabeb82cd5 /plugins/Popup/src/opt_gen.cpp | |
parent | 5c7ba495c74de2d7342ad05c59632b43c1d5321f (diff) |
fixes for various hangups & crashes on exit
git-svn-id: http://svn.miranda-ng.org/main/trunk@3652 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Popup/src/opt_gen.cpp')
-rw-r--r-- | plugins/Popup/src/opt_gen.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Popup/src/opt_gen.cpp b/plugins/Popup/src/opt_gen.cpp index a878aafcac..ee41be873a 100644 --- a/plugins/Popup/src/opt_gen.cpp +++ b/plugins/Popup/src/opt_gen.cpp @@ -454,7 +454,7 @@ INT_PTR CALLBACK DlgProcPopUpGeneral(HWND hwnd, UINT msg, WPARAM wParam, LPARAM PopUpOptions.Seconds = SETTING_LIFETIME_MAX;
else if (seconds < SETTING_LIFETIME_MIN)
PopUpOptions.Seconds = SETTING_LIFETIME_MIN;
- if(seconds != PopUpOptions.Seconds) {
+ if (seconds != PopUpOptions.Seconds) {
SetDlgItemInt(hwnd, idCtrl, PopUpOptions.Seconds, FALSE);
ErrorMSG(SETTING_LIFETIME_MIN, SETTING_LIFETIME_MAX);
SetFocus((HWND)lParam);
@@ -466,9 +466,9 @@ INT_PTR CALLBACK DlgProcPopUpGeneral(HWND hwnd, UINT msg, WPARAM wParam, LPARAM int temp = GetDlgItemInt(hwnd, idCtrl, NULL, FALSE);
if (temp < SETTING_MINIMUMWIDTH_MIN)
PopUpOptions.MinimumWidth = SETTING_MINIMUMWIDTH_MIN;
- else if(temp > SETTING_MAXIMUMWIDTH_MAX)
+ else if (temp > SETTING_MAXIMUMWIDTH_MAX)
PopUpOptions.MinimumWidth = SETTING_MAXIMUMWIDTH_MAX;
- if(temp != PopUpOptions.MinimumWidth) {
+ if (temp != PopUpOptions.MinimumWidth) {
SetDlgItemInt(hwnd, idCtrl, PopUpOptions.MinimumWidth, FALSE);
ErrorMSG(SETTING_MINIMUMWIDTH_MIN, SETTING_MAXIMUMWIDTH_MAX);
SetFocus((HWND)lParam);
@@ -485,9 +485,9 @@ INT_PTR CALLBACK DlgProcPopUpGeneral(HWND hwnd, UINT msg, WPARAM wParam, LPARAM int temp = GetDlgItemInt(hwnd, idCtrl, NULL, FALSE);
if (temp >= SETTING_MAXIMUMWIDTH_MAX)
PopUpOptions.MaximumWidth = SETTING_MAXIMUMWIDTH_MAX;
- else if(temp < SETTING_MINIMUMWIDTH_MIN)
+ else if (temp < SETTING_MINIMUMWIDTH_MIN)
PopUpOptions.MaximumWidth = SETTING_MINIMUMWIDTH_MIN;
- if(temp != PopUpOptions.MaximumWidth) {
+ if (temp != PopUpOptions.MaximumWidth) {
SetDlgItemInt(hwnd, idCtrl, PopUpOptions.MaximumWidth, FALSE);
ErrorMSG(SETTING_MINIMUMWIDTH_MIN, SETTING_MAXIMUMWIDTH_MAX);
SetFocus((HWND)lParam);
@@ -646,7 +646,7 @@ void Check_ReorderPopUps(HWND hwnd) { }
DBWriteContactSettingByte(NULL, MODULNAME, "ReorderPopUps", PopUpOptions.ReorderPopUps);
DBWriteContactSettingByte(NULL, MODULNAME, "ReorderPopUpsWarning", PopUpOptions.ReorderPopUpsWarning);
- if(hwnd) CheckDlgButton(hwnd, IDC_REORDERPOPUPS, PopUpOptions.ReorderPopUps);
+ if (hwnd) CheckDlgButton(hwnd, IDC_REORDERPOPUPS, PopUpOptions.ReorderPopUps);
}
void ThemeDialogBackground(HWND hwnd) {
|