From 3e0cbcdd0e1cdaf4e8f13c0f9dc444a4e4b720f7 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Mon, 3 Mar 2014 09:54:38 +0000 Subject: - fixes #608 (Plugin Updater popup has wrong colors) - fixes #607 (Capitalization inconsistency) - fixes #606 (Can't add new anniversary in UserInfoEx) git-svn-id: http://svn.miranda-ng.org/main/trunk@8369 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/UserInfoEx/src/psp_anniversary.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'plugins/UserInfoEx/src/psp_anniversary.cpp') diff --git a/plugins/UserInfoEx/src/psp_anniversary.cpp b/plugins/UserInfoEx/src/psp_anniversary.cpp index d27ce5f7a0..17a6c8b257 100644 --- a/plugins/UserInfoEx/src/psp_anniversary.cpp +++ b/plugins/UserInfoEx/src/psp_anniversary.cpp @@ -71,10 +71,7 @@ static INT_PTR CALLBACK DlgProc_AnniversaryEditor(HWND hDlg, UINT uMsg, WPARAM w EnableWindow(GetDlgItem(hDlg, IDOK), GetWindowTextLength((HWND)lParam) > 0); break; - case IDCANCEL: - return EndDialog(hDlg, LOWORD(wParam)); - - case IDOK: + case IDOK: { // read new description HWND hEdit = GetDlgItem(hDlg, EDIT_CATEGORY); int len = Edit_GetTextLength(hEdit); @@ -93,6 +90,11 @@ static INT_PTR CALLBACK DlgProc_AnniversaryEditor(HWND hDlg, UINT uMsg, WPARAM w pDlgEditAnniv->SetFlags(MAnnivDate::MADF_HASCUSTOM | MAnnivDate::MADF_CHANGED); } } + // fall through + case IDCANCEL: + return EndDialog(hDlg, LOWORD(wParam)); + + } } return FALSE; } -- cgit v1.2.3