This commit is contained in:
Kovid Goyal 2021-04-08 14:01:21 +05:30
parent 157a26a270
commit 26431a36ea
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -51,6 +51,9 @@ class ConfirmMerge(Dialog):
def __init__(self, msg, name, parent, mi):
self.msg, self.mi, self.conf_name = msg, mi, name
Dialog.__init__(self, _('Are you sure?'), 'confirm-merge-dialog', parent)
needed, sz = self.sizeHint(), self.size()
if needed.width() > sz.width() or needed.height() > sz.height():
self.resize(needed)
def setup_ui(self):
self.l = l = QVBoxLayout(self)