Read/Write settings from/to correct subcategory and cleanup
[quassel.git] / src / qtui / settingspages / notificationssettingspage.cpp
index 2c9585e..3407ac5 100644 (file)
@@ -29,14 +29,16 @@ NotificationsSettingsPage::NotificationsSettingsPage(QWidget *parent)
 
   QVBoxLayout *layout = new QVBoxLayout(this);
   foreach(AbstractNotificationBackend *backend, QtUi::notificationBackends()) {
-    SettingsPage *cw = backend->configWidget();
+    SettingsPage *cw = backend->createConfigWidget();
     if(cw) {
+      cw->setParent(this);
       _configWidgets.append(cw);
       layout->addWidget(cw);
       connect(cw, SIGNAL(changed(bool)), SLOT(widgetHasChanged()));
     }
   }
   layout->addStretch(1);
+  load();
 }
 
 bool NotificationsSettingsPage::hasDefaults() const {