summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-01-08 14:27:48 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-01-08 14:27:48 +0300
commit0e0505ce6e81de32d99cd435b03f2e619e188a1e (patch)
treefaddbbb48b54b56790ab439d529179a1d6b1ef0c
parent4e532a8e7f362e459e42ef2dad1a069c0c0d5859 (diff)
fixes #4105 (Контакт "Favorites" переименовывается, но переименование не сохраняется)
-rw-r--r--protocols/ICQ-WIM/src/server.cpp4
1 files changed, 3 insertions, 1 deletions
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;