From ce770b90aa972d35a48682ee10e10139ee2ecdc8 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Wed, 9 Feb 2022 12:21:14 +0600 Subject: [PATCH] Fix compile error --- src/qt/qt_styleoverride.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qt/qt_styleoverride.cpp b/src/qt/qt_styleoverride.cpp index acdae7ae0..06876adb2 100644 --- a/src/qt/qt_styleoverride.cpp +++ b/src/qt/qt_styleoverride.cpp @@ -35,7 +35,8 @@ void StyleOverride::polish(QWidget* widget) /* Disable title bar context help buttons globally as they are unused. */ if (widget->isWindow()) { if (widget->layout() && widget->minimumSize() == widget->maximumSize()) { - if (widget->minimumSize() < widget->minimumSizeHint()) { + if (widget->minimumSize().width() < widget->minimumSizeHint().width() + || widget->minimumSize().height() < widget->minimumSizeHint().height()) { widget->setFixedSize(QSize(QWIDGETSIZE_MAX, QWIDGETSIZE_MAX)); widget->layout()->setSizeConstraint(QLayout::SetFixedSize); }