From d7b15f5f89319f1a9077efb50bd3a242a5dc2b52 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 20 Feb 2013 16:03:04 +0000 Subject: fixes for various hangups & crashes on exit git-svn-id: http://svn.miranda-ng.org/main/trunk@3652 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Popup/src/opt_adv.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'plugins/Popup/src/opt_adv.cpp') diff --git a/plugins/Popup/src/opt_adv.cpp b/plugins/Popup/src/opt_adv.cpp index 6eca70dbb6..3469238530 100644 --- a/plugins/Popup/src/opt_adv.cpp +++ b/plugins/Popup/src/opt_adv.cpp @@ -391,7 +391,7 @@ INT_PTR CALLBACK DlgProcPopUpAdvOpts(HWND hwnd, UINT msg, WPARAM wParam, LPARAM case IDC_MAXPOPUPS: { int maxPop = GetDlgItemInt(hwnd, idCtrl, NULL, FALSE); - if(maxPop > 0){ + if (maxPop > 0){ PopUpOptions.MaxPopups = maxPop; SendMessage(GetParent(hwnd), PSM_CHANGED, 0, 0); } @@ -446,9 +446,9 @@ INT_PTR CALLBACK DlgProcPopUpAdvOpts(HWND hwnd, UINT msg, WPARAM wParam, LPARAM case IDC_MAXPOPUPS: { int maxPop = GetDlgItemInt(hwnd, idCtrl, NULL, FALSE); - if(maxPop <= 0) + if (maxPop <= 0) PopUpOptions.MaxPopups = 20; - if(maxPop != PopUpOptions.MaxPopups) { + if (maxPop != PopUpOptions.MaxPopups) { SetDlgItemInt(hwnd, idCtrl, PopUpOptions.MaxPopups, FALSE); //ErrorMSG(1); SetFocus((HWND)lParam); @@ -458,11 +458,11 @@ INT_PTR CALLBACK DlgProcPopUpAdvOpts(HWND hwnd, UINT msg, WPARAM wParam, LPARAM case IDC_HISTORYSIZE: { int histSize = GetDlgItemInt(hwnd, idCtrl, NULL, FALSE); - if(histSize <= 0) + if (histSize <= 0) PopUpOptions.HistorySize = SETTING_HISTORYSIZE_DEFAULT; - else if(histSize > SETTING_HISTORYSIZE_MAX) + else if (histSize > SETTING_HISTORYSIZE_MAX) PopUpOptions.HistorySize = SETTING_HISTORYSIZE_MAX; - if(histSize != PopUpOptions.HistorySize) { + if (histSize != PopUpOptions.HistorySize) { SetDlgItemInt(hwnd, idCtrl, PopUpOptions.HistorySize, FALSE); ErrorMSG(1, SETTING_HISTORYSIZE_MAX); SetFocus((HWND)lParam); @@ -472,9 +472,9 @@ INT_PTR CALLBACK DlgProcPopUpAdvOpts(HWND hwnd, UINT msg, WPARAM wParam, LPARAM case IDC_AVT_RADIUS: { int avtRadius = GetDlgItemInt(hwnd, idCtrl, NULL, FALSE); - if(avtRadius > SETTING_AVTSIZE_MAX / 2) + if (avtRadius > SETTING_AVTSIZE_MAX / 2) PopUpOptions.avatarRadius = SETTING_AVTSIZE_MAX / 2; - if(avtRadius != PopUpOptions.avatarRadius) { + if (avtRadius != PopUpOptions.avatarRadius) { SetDlgItemInt(hwnd, idCtrl, PopUpOptions.avatarRadius, FALSE); ErrorMSG(0, SETTING_AVTSIZE_MAX / 2); SetFocus((HWND)lParam); @@ -484,11 +484,11 @@ INT_PTR CALLBACK DlgProcPopUpAdvOpts(HWND hwnd, UINT msg, WPARAM wParam, LPARAM case IDC_FADEIN: { int fade = GetDlgItemInt(hwnd, idCtrl, NULL, FALSE); - if(fade < SETTING_FADEINTIME_MIN) + if (fade < SETTING_FADEINTIME_MIN) PopUpOptions.FadeIn = SETTING_FADEINTIME_MIN; - else if(fade > SETTING_FADEINTIME_MAX) + else if (fade > SETTING_FADEINTIME_MAX) PopUpOptions.FadeIn = SETTING_FADEINTIME_MAX; - if(fade != PopUpOptions.FadeIn) { + if (fade != PopUpOptions.FadeIn) { SetDlgItemInt(hwnd, idCtrl, PopUpOptions.FadeIn, FALSE); ErrorMSG(SETTING_FADEINTIME_MIN, SETTING_FADEINTIME_MAX); SetFocus((HWND)lParam); @@ -498,11 +498,11 @@ INT_PTR CALLBACK DlgProcPopUpAdvOpts(HWND hwnd, UINT msg, WPARAM wParam, LPARAM case IDC_FADEOUT: { int fade = GetDlgItemInt(hwnd, idCtrl, NULL, FALSE); - if(fade < SETTING_FADEOUTTIME_MIN) + if (fade < SETTING_FADEOUTTIME_MIN) PopUpOptions.FadeOut = SETTING_FADEOUTTIME_MIN; - else if(fade > SETTING_FADEOUTTIME_MAX) + else if (fade > SETTING_FADEOUTTIME_MAX) PopUpOptions.FadeOut = SETTING_FADEOUTTIME_MAX; - if(fade != PopUpOptions.FadeOut) { + if (fade != PopUpOptions.FadeOut) { SetDlgItemInt(hwnd, idCtrl, PopUpOptions.FadeOut, FALSE); ErrorMSG(SETTING_FADEOUTTIME_MIN, SETTING_FADEOUTTIME_MAX); SetFocus((HWND)lParam); -- cgit v1.2.3