Instead of just disabling the checkbox for DockManager notifications,
hide the config widget if the D-Bus service is not available.
Otherwise it's really confusing to see a disabled option for a
notification backend that was basically retired 6 years ago.
{
QHBoxLayout *layout = new QHBoxLayout(this);
layout->addWidget(enabledBox = new QCheckBox(tr("Mark dockmanager entry"), this));
{
QHBoxLayout *layout = new QHBoxLayout(this);
layout->addWidget(enabledBox = new QCheckBox(tr("Mark dockmanager entry"), this));
- enabledBox->setEnabled(enabled);
+ enabledBox->setVisible(enabled);
connect(enabledBox, SIGNAL(toggled(bool)), SLOT(widgetChanged()));
}
connect(enabledBox, SIGNAL(toggled(bool)), SLOT(widgetChanged()));
}