From 0e0505ce6e81de32d99cd435b03f2e619e188a1e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 8 Jan 2024 14:27:48 +0300 Subject: =?UTF-8?q?fixes=20#4105=20(=D0=9A=D0=BE=D0=BD=D1=82=D0=B0=D0=BA?= =?UTF-8?q?=D1=82=20"Favorites"=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B8=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=D0=B2=D1=8B=D0=B2=D0=B0=D0=B5=D1=82=D1=81?= =?UTF-8?q?=D1=8F,=20=D0=BD=D0=BE=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B8=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BD=D0=B5?= =?UTF-8?q?=20=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD=D1=8F=D0=B5=D1=82=D1=81?= =?UTF-8?q?=D1=8F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/ICQ-WIM/src/server.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols/ICQ-WIM/src') diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp index b205d58e9d..67361d82b7 100644 --- a/protocols/ICQ-WIM/src/server.cpp +++ b/protocols/ICQ-WIM/src/server.cpp @@ -895,7 +895,9 @@ void CIcqProto::SetOwnId(const CMStringW &wszId) } setWString(pUser->m_hContact, "Nick", TranslateT("Favorites")); - db_set_ws(pUser->m_hContact, "CList", "MyHandle", TranslateT("Favorites")); + ptrW wszMyHandle(db_get_wsa(pUser->m_hContact, "CList", "MyHandle")); + if (!wszMyHandle) + db_set_ws(pUser->m_hContact, "CList", "MyHandle", TranslateT("Favorites")); if (m_hFavContact == INVALID_CONTACT_ID) { m_hFavContact = pUser->m_hContact; -- cgit v1.2.3