summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Toaster/src/services.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Toaster/src/services.cpp b/plugins/Toaster/src/services.cpp
index 1168e8cc95..20a9303373 100644
--- a/plugins/Toaster/src/services.cpp
+++ b/plugins/Toaster/src/services.cpp
@@ -112,9 +112,9 @@ static INT_PTR PopupQuery(WPARAM wParam, LPARAM)
bool enabled = db_get_b(0, "Popup", "ModuleIsEnabled", 1) != 0;
if (enabled) db_set_b(0, "Popup", "ModuleIsEnabled", 0);
+ mir_cslock lck(csNotifications);
while (lstNotifications.getCount())
{
- mir_cslock lck(csNotifications);
lstNotifications[0].Hide();
lstNotifications.remove(0);
}