[libcalamaresui] Use translation fix for Error Dialog

This commit is contained in:
Artem Grinev 2021-12-06 02:27:18 +04:00
parent 32c5e18db0
commit bfa7b9a792

View File

@ -3,6 +3,7 @@
#include <QIcon>
#include <QDialogButtonBox>
#include "widgets/TranslationFix.h"
namespace Calamares {
@ -81,7 +82,8 @@ void ErrorDialog::setShouldOfferWebPaste(bool newShouldOfferWebPaste)
ui->buttonBox->setStandardButtons( m_shouldOfferWebPaste
? (QDialogButtonBox::Yes | QDialogButtonBox::No)
: QDialogButtonBox::Close );
fixButtonLabels(ui->buttonBox);
emit shouldOfferWebPasteChanged();
}