Hide warning label in backend settings when not shown.

This commit is contained in:
Jonas Kvinge 2018-06-29 00:33:30 +02:00
parent fc66e2e2c7
commit 980d8a65a1
2 changed files with 6 additions and 6 deletions

View File

@ -437,6 +437,9 @@ void BackendSettingsPage::ShowWarning(QString text) {
ui_->label_warn_text->setStyleSheet("QLabel { color: red; }");
ui_->label_warn_text->setText("<b>" + text + "</b>");
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);
}

View File

@ -367,12 +367,6 @@
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>114</height>
</size>
</property>
</spacer>
</item>
</layout>