Fix crash in 5.12.5 widget init on Windows.
This commit is contained in:
parent
2bd6f100cd
commit
aa6bf8b0e7
1 changed files with 2 additions and 1 deletions
|
|
@ -31,7 +31,8 @@ void CreateWidgetStateRecursive(not_null<QWidget*> target) {
|
||||||
if (!target->isWindow()) {
|
if (!target->isWindow()) {
|
||||||
CreateWidgetStateRecursive(target->parentWidget());
|
CreateWidgetStateRecursive(target->parentWidget());
|
||||||
WidgetCreator::Create(target);
|
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 {
|
} else {
|
||||||
WidgetCreator::Create(target);
|
WidgetCreator::Create(target);
|
||||||
#endif // Qt >= 5.6
|
#endif // Qt >= 5.6
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue