AccountWizard: Reserve space for error label #6546

This commit is contained in:
Christian Kamm 2018-05-25 08:44:03 +02:00 committed by Roeland Jago Douma
parent a6179876c7
commit a1d6af60f0
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -62,6 +62,9 @@ namespace WizardCommon {
errorLabel->setStyleSheet(style);
errorLabel->setWordWrap(true);
auto sizePolicy = errorLabel->sizePolicy();
sizePolicy.setRetainSizeWhenHidden(true);
errorLabel->setSizePolicy(sizePolicy);
errorLabel->setVisible(false);
}