From 8e4a54868c87fe20c1825861d6ed3f66c5927dfa Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 24 Feb 2023 16:03:33 +0300 Subject: =?UTF-8?q?fixes=20#3130=20(WhenWasIt=20=D0=B2=D0=B5=D0=B4=D1=91?= =?UTF-8?q?=D1=82=20=D1=81=D0=B5=D0=B1=D1=8F=20=D1=81=D1=82=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D0=BD=D0=BE)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/WhenWasIt/src/add_birthday.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugins/WhenWasIt/src/add_birthday.cpp') diff --git a/plugins/WhenWasIt/src/add_birthday.cpp b/plugins/WhenWasIt/src/add_birthday.cpp index 802da3df80..455132e47d 100644 --- a/plugins/WhenWasIt/src/add_birthday.cpp +++ b/plugins/WhenWasIt/src/add_birthday.cpp @@ -94,8 +94,12 @@ public: } }; -INT_PTR AddBirthdayService(WPARAM hContact, LPARAM) +INT_PTR AddBirthdayService(WPARAM hContact, LPARAM bAsIs) { + // if called from the contacts' popup menu, always edit custom birthday in UserInfo module + if (!bAsIs) + hContact = -hContact; + HWND hWnd = WindowList_Find(hAddBirthdayWndsList, hContact); if (!hWnd) (new CAddBirthdayDlg(hContact))->Show(); -- cgit v1.2.3