From 31d588ab50749d217cdd29e439b600c9dc20c7be Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 22 Mar 2013 19:41:48 +0000 Subject: popups list should not be sorted git-svn-id: http://svn.miranda-ng.org/main/trunk@4161 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Popup/src/popup_thread.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/Popup/src/popup_thread.cpp b/plugins/Popup/src/popup_thread.cpp index 722c7418ba..de7b808a22 100644 --- a/plugins/Popup/src/popup_thread.cpp +++ b/plugins/Popup/src/popup_thread.cpp @@ -33,8 +33,7 @@ static HWND gHwndManager = 0; static int gLockCount = 0; static volatile int nPopups = 0; -typedef LIST PopupList; -static PopupList popupList(3, PopupList::FTSortFunc(PtrKeySortT)); +static LIST popupList(3); // forwards enum @@ -180,7 +179,11 @@ static LRESULT CALLBACK PopupThreadManagerWndProc(HWND hwnd, UINT message, WPARA break; case UTM_REMOVE_WINDOW: - popupList.remove(wnd); + { + for (int i=popupList.getCount()-1; i >= 0; i--) + if (popupList[i] == wnd) + popupList.remove(i); + } RepositionPopups(); --nPopups; delete wnd; -- cgit v1.2.3