From 980d8a65a15e2bbe65b4a04a22b931ab077f560d Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Fri, 29 Jun 2018 00:33:30 +0200 Subject: [PATCH] Hide warning label in backend settings when not shown. --- src/settings/backendsettingspage.cpp | 6 ++++++ src/settings/backendsettingspage.ui | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/settings/backendsettingspage.cpp b/src/settings/backendsettingspage.cpp index f1cb45fa7..1355c383e 100644 --- a/src/settings/backendsettingspage.cpp +++ b/src/settings/backendsettingspage.cpp @@ -437,6 +437,9 @@ void BackendSettingsPage::ShowWarning(QString text) { ui_->label_warn_text->setStyleSheet("QLabel { color: red; }"); ui_->label_warn_text->setText("" + text + ""); + + ui_->label_warn_logo->setVisible(true); + ui_->label_warn_text->setVisible(true); ui_->label_warn_logo->setEnabled(true); ui_->label_warn_text->setEnabled(true); @@ -450,6 +453,9 @@ void BackendSettingsPage::ResetWarning() { ui_->label_warn_logo->setEnabled(false); ui_->label_warn_text->setEnabled(false); + + ui_->label_warn_logo->setVisible(false); + ui_->label_warn_text->setVisible(false); } diff --git a/src/settings/backendsettingspage.ui b/src/settings/backendsettingspage.ui index 8bf0bfed7..14a8ce319 100644 --- a/src/settings/backendsettingspage.ui +++ b/src/settings/backendsettingspage.ui @@ -367,12 +367,6 @@ Qt::Vertical - - - 20 - 114 - -