From 02432530c9d0b2956c5053cca04048b5dbf19640 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Thu, 14 Jun 2018 21:13:41 +0200 Subject: [PATCH] qtui: Don't show config for DockManager if not available 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. --- src/qtui/dockmanagernotificationbackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qtui/dockmanagernotificationbackend.cpp b/src/qtui/dockmanagernotificationbackend.cpp index da7e5efc..786593d2 100644 --- a/src/qtui/dockmanagernotificationbackend.cpp +++ b/src/qtui/dockmanagernotificationbackend.cpp @@ -182,7 +182,7 @@ DockManagerNotificationBackend::ConfigWidget::ConfigWidget(bool enabled, QWidget { 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())); } -- 2.20.1