diff options
Diffstat (limited to 'plugins/Popup/src/popup_thread.cpp')
-rw-r--r-- | plugins/Popup/src/popup_thread.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/Popup/src/popup_thread.cpp b/plugins/Popup/src/popup_thread.cpp index 183014a76f..d6fa27d649 100644 --- a/plugins/Popup/src/popup_thread.cpp +++ b/plugins/Popup/src/popup_thread.cpp @@ -179,12 +179,9 @@ static LRESULT CALLBACK PopupThreadManagerWndProc(HWND hwnd, UINT message, WPARA break;
case UTM_REMOVE_WINDOW:
- {
- auto T = popupList.rev_iter();
- for (auto &it : T)
- if (it == wnd)
- popupList.remove(T.indexOf(&it));
- }
+ for (auto &it : popupList.rev_iter())
+ if (it == wnd)
+ popupList.removeItem(&it);
RepositionPopups();
--nPopups;
|