/***************************************************************************
- * Copyright (C) 2005-08 by the Quassel Project *
+ * Copyright (C) 2005-09 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
if((*i).notificationId == notificationId) {
foreach(AbstractNotificationBackend *backend, _notificationBackends)
backend->close(notificationId);
- _notifications.erase(i);
+ i = _notifications.erase(i);
break;
+ } else {
+ ++i;
}
- ++i;
}
}
if(!bufferId.isValid() || (*i).bufferId == bufferId) {
foreach(AbstractNotificationBackend *backend, _notificationBackends)
backend->close((*i).notificationId);
- _notifications.erase(i);
+ i = _notifications.erase(i);
+ } else {
+ ++i;
}
- ++i;
}
}