diff options
author | George Hazan <ghazan@miranda.im> | 2023-02-24 16:03:33 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-02-24 16:03:33 +0300 |
commit | 8e4a54868c87fe20c1825861d6ed3f66c5927dfa (patch) | |
tree | 389d343d7fe855fb725f900abd3ac4c1cc4565a2 /plugins/WhenWasIt/src/add_birthday.cpp | |
parent | 71fcd78ec9a08c7d613f57620fff155d7681d4ef (diff) |
fixes #3130 (WhenWasIt ведёт себя странно)
Diffstat (limited to 'plugins/WhenWasIt/src/add_birthday.cpp')
-rw-r--r-- | plugins/WhenWasIt/src/add_birthday.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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(); |