Fix crash in 5.12.5 widget init on Windows.

This commit is contained in:
John Preston 2019-10-12 12:50:24 +04:00
parent 2bd6f100cd
commit aa6bf8b0e7

View file

@ -31,7 +31,8 @@ void CreateWidgetStateRecursive(not_null<QWidget*> target) {
if (!target->isWindow()) {
CreateWidgetStateRecursive(target->parentWidget());
WidgetCreator::Create(target);
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) \
&& QT_VERSION < QT_VERSION_CHECK(5, 7, 0)
} else {
WidgetCreator::Create(target);
#endif // Qt >= 5.6