From 02c866d6d2fd2260637d889d146b8687a8ba15a6 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Mon, 26 Aug 2019 14:44:52 -0300 Subject: [PATCH] confirmation body can be rendered as HTML --- bauh/view/qt/confirmation.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bauh/view/qt/confirmation.py b/bauh/view/qt/confirmation.py index 702815aa..f5f2892c 100644 --- a/bauh/view/qt/confirmation.py +++ b/bauh/view/qt/confirmation.py @@ -16,11 +16,9 @@ class ConfirmationDialog(QMessageBox): self.addButton(locale_keys['popup.button.no'] if not deny_label else deny_label.capitalize(), QMessageBox.NoRole) if body: - if components: - self.layout().addWidget(QLabel(body), 0, 1) - else: + self.layout().addWidget(QLabel(body), 0, 1) + if not components: self.setIcon(QMessageBox.Question) - self.setText(body) if components: comps_container = QWidget(parent=self)