From d80970d9b26b5e9b7868ec61349490da5e24dc64 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 20 Dec 2023 16:43:14 +0300 Subject: libTextControl: contact settings extracted to MTextSetProto --- plugins/Popup/src/popup_wnd2.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'plugins/Popup') diff --git a/plugins/Popup/src/popup_wnd2.cpp b/plugins/Popup/src/popup_wnd2.cpp index b6de298843..8a4c95ce08 100644 --- a/plugins/Popup/src/popup_wnd2.cpp +++ b/plugins/Popup/src/popup_wnd2.cpp @@ -740,10 +740,9 @@ void PopupWnd2::buildMText() m_mtText = m_mtTitle = nullptr; if (m_lptzText && m_lptzTitle) { - auto *szProto = Proto_GetBaseAccountName(m_hContact); m_textType = TT_MTEXT; - m_mtText = MTextCreateW(htuText, szProto, m_lptzText); - m_mtTitle = MTextCreateW(htuTitle, szProto, m_lptzTitle); + m_mtText = MTextCreateW(htuText, m_lptzText); MTextSetProto(m_mtText, m_hContact); + m_mtTitle = MTextCreateW(htuTitle, m_lptzTitle); MTextSetProto(m_mtTitle, m_hContact); } } -- cgit v1.2.3