summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Popup/src/popup_thread.cpp9
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;