/***************************************************************************
- * 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 *
_actionProvider = new NetworkModelActionProvider(this);
QtUiSettings uiSettings;
- loadTranslation(uiSettings.value("Locale", QLocale::system()).value<QLocale>());
+ Quassel::loadTranslation(uiSettings.value("Locale", QLocale::system()).value<QLocale>());
_mainWin = new MainWin();
_style = new QtUiStyle;
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;
}
}