summaryrefslogtreecommitdiff
path: root/src/gui/windows/pincodedialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/pincodedialog.cpp')
-rw-r--r--src/gui/windows/pincodedialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/windows/pincodedialog.cpp b/src/gui/windows/pincodedialog.cpp
index 223ad69c0..0e79774ac 100644
--- a/src/gui/windows/pincodedialog.cpp
+++ b/src/gui/windows/pincodedialog.cpp
@@ -75,6 +75,8 @@ PincodeDialog::PincodeDialog(const std::string &restrict title,
int width = getFont()->getWidth(title);
if (width < textLabel->getWidth())
width = textLabel->getWidth();
+ if (width < mPincode->getWidth())
+ width = mPincode->getWidth();
reflowLayout(CAST_S32(width + 20), 0);
updateButtons();
}