From 5fe02998f36882b52451743f831e811c051b395f Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Thu, 3 Mar 2016 07:29:06 +0000 Subject: VKontakte: small fix git-svn-id: http://svn.miranda-ng.org/main/trunk@16399 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_history.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'protocols/VKontakte/src') diff --git a/protocols/VKontakte/src/vk_history.cpp b/protocols/VKontakte/src/vk_history.cpp index cbf6539068..51481c66c0 100644 --- a/protocols/VKontakte/src/vk_history.cpp +++ b/protocols/VKontakte/src/vk_history.cpp @@ -171,6 +171,12 @@ void CVkProto::OnReceiveHistoryMessages(NETLIBHTTPREQUEST *reply, AsyncHttpReque m_iLoadHistoryTask--; debugLog(_T("CVkProto::OnReceiveHistoryMessages error m_iLoadHistoryTask=%d"), m_iLoadHistoryTask); MsgPopup(NULL, TranslateT("Error loading history message from server"), TranslateT("Error"), true); + + if (m_iLoadHistoryTask == 0 && m_bNotifyForEndLoadingHistoryAllContact) { + MsgPopup(NULL, TranslateT("Loading messages for all contacts is completed"), TranslateT("Loading history")); + m_bNotifyForEndLoadingHistoryAllContact = m_bNotifyForEndLoadingHistory = false; + } + return; } @@ -190,7 +196,7 @@ void CVkProto::OnReceiveHistoryMessages(NETLIBHTTPREQUEST *reply, AsyncHttpReque debugLog(_T("CVkProto::OnReceiveHistoryMessages error for %s m_iLoadHistoryTask=%d"), ptszNick, m_iLoadHistoryTask); if (m_iLoadHistoryTask == 0 && m_bNotifyForEndLoadingHistoryAllContact) { - MsgPopup(param->hContact, TranslateT("Loading messages for all contacts is completed"), TranslateT("Loading history")); + MsgPopup(NULL, TranslateT("Loading messages for all contacts is completed"), TranslateT("Loading history")); m_bNotifyForEndLoadingHistoryAllContact = m_bNotifyForEndLoadingHistory = false; } @@ -283,7 +289,7 @@ void CVkProto::OnReceiveHistoryMessages(NETLIBHTTPREQUEST *reply, AsyncHttpReque MsgPopup(param->hContact, str, TranslateT("Loading history")); if (m_iLoadHistoryTask == 0 && m_bNotifyForEndLoadingHistoryAllContact) { - MsgPopup(param->hContact, TranslateT("Loading messages for all contacts is completed"), TranslateT("Loading history")); + MsgPopup(NULL, TranslateT("Loading messages for all contacts is completed"), TranslateT("Loading history")); m_bNotifyForEndLoadingHistoryAllContact = m_bNotifyForEndLoadingHistory = false; } } -- cgit v1.2.3