confirmation body can be rendered as HTML

This commit is contained in:
Vinicius Moreira
2019-08-26 14:44:52 -03:00
parent 69b1837c83
commit 02c866d6d2

View File

@@ -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)