diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-22 19:41:48 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-22 19:41:48 +0000 |
commit | 31d588ab50749d217cdd29e439b600c9dc20c7be (patch) | |
tree | 8899711482a295a9febce6a8c6a323c6dbcf6a36 /plugins/Popup | |
parent | 135498d7eb9088d123bd1c0008a13a2dc7e4ff57 (diff) |
popups list should not be sorted
git-svn-id: http://svn.miranda-ng.org/main/trunk@4161 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Popup')
-rw-r--r-- | plugins/Popup/src/popup_thread.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
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<PopupWnd2> PopupList;
-static PopupList popupList(3, PopupList::FTSortFunc(PtrKeySortT));
+static LIST<PopupWnd2> 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;
|