From a351d456fedcacc6ff407e583bc5cbf9bf5ea8ce Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Tue, 30 Oct 2012 13:13:14 +0000 Subject: NewsAggrefator: fix for a message window freezes while receiving a feed git-svn-id: http://svn.miranda-ng.org/main/trunk@2114 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/NewsAggregator/Src/Services.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'protocols') diff --git a/protocols/NewsAggregator/Src/Services.cpp b/protocols/NewsAggregator/Src/Services.cpp index b057f515be..72f666fa98 100644 --- a/protocols/NewsAggregator/Src/Services.cpp +++ b/protocols/NewsAggregator/Src/Services.cpp @@ -22,16 +22,6 @@ Boston, MA 02111-1307, USA. int g_nStatus = ID_STATUS_OFFLINE; UINT_PTR timerId = 0; -HANDLE hOpenMessageWindow = NULL; - -int OnMessageWindowOpen(WPARAM,LPARAM lParam) -{ - MessageWindowEventData *hWindowEvent = (MessageWindowEventData*) lParam; - if (hWindowEvent->uType == MSG_WINDOW_EVT_OPENING && IsMyContact(hWindowEvent->hContact)) - CheckCurrentFeed(hWindowEvent->hContact); - return 0; -} - void SetContactStatus(HANDLE hContact,int nNewStatus) { if(DBGetContactSettingWord(hContact,MODULE,"Status",ID_STATUS_OFFLINE) != nNewStatus) @@ -68,8 +58,6 @@ int NewsAggrInit(WPARAM wParam,LPARAM lParam) InitIcons(); InitMenu(); - hOpenMessageWindow = HookEvent(ME_MSG_WINDOWEVENT,OnMessageWindowOpen); - // timer for the first update timerId = SetTimer(NULL, 0, 5000, timerProc2); // first update is 5 sec after load @@ -88,8 +76,6 @@ int NewsAggrPreShutdown(WPARAM wParam,LPARAM lParam) KillTimer(NULL, timerId); NetlibUnInit(); - if(hOpenMessageWindow) UnhookEvent(hOpenMessageWindow); - return 0; } -- cgit v1.2.3