don't unload plugins if they failed to initialize so we have the possibility to use their settings

This commit is contained in:
Patrick von Reth 2015-02-04 10:00:53 +01:00
parent 4e5f99c0c6
commit e65e7d9cbe
1 changed files with 3 additions and 3 deletions

View File

@ -67,8 +67,8 @@ void SnoreCore::loadPlugins(SnorePlugin::PluginTypes types)
if (!plugin->initialize()) {
snoreDebug(SNORE_WARNING) << "Failed to initialize" << plugin->name();
plugin->deinitialize();
info->unload();
continue;
//info->unload();
break;
}
}
}
@ -94,7 +94,7 @@ void SnoreCore::broadcastNotification(Notification notification)
{
Q_D(SnoreCore);
snoreDebug(SNORE_DEBUG) << "Broadcasting" << notification << "timeout:" << notification.timeout();
if (d->m_notificationBackend != NULL) {
if (d->m_notificationBackend != nullptr) {
if (notification.isUpdate() && !d->m_notificationBackend->canUpdateNotification()) {
requestCloseNotification(notification.old(), Notification::REPLACED);
}