summaryrefslogtreecommitdiff
path: root/plugins/Toaster/src/services.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-09-25 18:47:53 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-09-25 18:47:53 +0000
commitc888cdec61b7c3fdf164b15841b6aa148f0148d5 (patch)
treed39082ace48565e27412f02aeace1b00d2719804 /plugins/Toaster/src/services.cpp
parent65c13e2c1fe1c205ac6c5e0062a6a99389fc9af0 (diff)
Toaster: crash fix; check in options for enable/disable
git-svn-id: http://svn.miranda-ng.org/main/trunk@15443 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Toaster/src/services.cpp')
-rw-r--r--plugins/Toaster/src/services.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/Toaster/src/services.cpp b/plugins/Toaster/src/services.cpp
index 1209ebe0cd..ebfb13b3a5 100644
--- a/plugins/Toaster/src/services.cpp
+++ b/plugins/Toaster/src/services.cpp
@@ -262,11 +262,8 @@ static INT_PTR ShowMessage(WPARAM wParam, LPARAM lParam)
void __stdcall HideAllToasts(void*)
{
mir_cslock lck(csNotifications);
- while (lstNotifications.getCount())
- {
- lstNotifications[0].Hide();
- lstNotifications.remove(0);
- }
+ for (int i = 0; i < lstNotifications.getCount(); i++)
+ lstNotifications[i].Hide();
}
void InitServices()