Move "Appearance" to "Interface" in settingspages
[quassel.git] / src / qtui / settingspages / notificationssettingspage.cpp
index 3f4f789..a473bc8 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
 /***************************************************************************
- *   Copyright (C) 2005-08 by the Quassel IRC Team                         *
+ *   Copyright (C) 2005-09 by the Quassel Project                          *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -25,7 +25,9 @@
 #include "qtui.h"
 
 NotificationsSettingsPage::NotificationsSettingsPage(QWidget *parent)
 #include "qtui.h"
 
 NotificationsSettingsPage::NotificationsSettingsPage(QWidget *parent)
-  : SettingsPage(tr("Behaviour"), tr("Notifications"), parent) {
+  : SettingsPage(tr("Interface"), tr("Notifications"), parent),
+  _hasDefaults(false)
+{
 
   QVBoxLayout *layout = new QVBoxLayout(this);
   foreach(AbstractNotificationBackend *backend, QtUi::notificationBackends()) {
 
   QVBoxLayout *layout = new QVBoxLayout(this);
   foreach(AbstractNotificationBackend *backend, QtUi::notificationBackends()) {
@@ -35,13 +37,15 @@ NotificationsSettingsPage::NotificationsSettingsPage(QWidget *parent)
       _configWidgets.append(cw);
       layout->addWidget(cw);
       connect(cw, SIGNAL(changed(bool)), SLOT(widgetHasChanged()));
       _configWidgets.append(cw);
       layout->addWidget(cw);
       connect(cw, SIGNAL(changed(bool)), SLOT(widgetHasChanged()));
+      _hasDefaults |= cw->hasDefaults();
     }
   }
   layout->addStretch(1);
     }
   }
   layout->addStretch(1);
+  load();
 }
 
 bool NotificationsSettingsPage::hasDefaults() const {
 }
 
 bool NotificationsSettingsPage::hasDefaults() const {
-  return true;
+  return _hasDefaults;
 }
 
 void NotificationsSettingsPage::defaults() {
 }
 
 void NotificationsSettingsPage::defaults() {