From 8cd2a5257fe7ced9039e3378f5f6a740e46cc354 Mon Sep 17 00:00:00 2001 From: Garux Date: Mon, 18 Sep 2023 15:42:16 +0600 Subject: [PATCH] Surface Inspector flags: fix window resizing --- radiant/surfacedialog.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/radiant/surfacedialog.cpp b/radiant/surfacedialog.cpp index c3ff5ade..2f02c207 100644 --- a/radiant/surfacedialog.cpp +++ b/radiant/surfacedialog.cpp @@ -849,8 +849,7 @@ void SurfaceInspector::BuildDialog(){ // QObject::connect( frame, &QGroupBox::clicked, container, &QWidget::setVisible ); QObject::connect( frame, &QGroupBox::clicked, [container, wnd = GetWidget()]( bool checked ){ container->setVisible( checked ); - wnd->adjustSize(); - QTimer::singleShot( 0, [wnd](){ wnd->resize( 99, 99 ); } ); + QTimer::singleShot( 0, [wnd](){ wnd->adjustSize(); wnd->resize( 99, 99 ); } ); } ); container->setVisible( false ); { @@ -882,8 +881,7 @@ void SurfaceInspector::BuildDialog(){ QObject::connect( frame, &QGroupBox::clicked, [container, wnd = GetWidget()]( bool checked ){ container->setVisible( checked ); - wnd->adjustSize(); - QTimer::singleShot( 0, [wnd](){ wnd->resize( 99, 99 ); } ); + QTimer::singleShot( 0, [wnd](){ wnd->adjustSize(); wnd->resize( 99, 99 ); } ); } ); container->setVisible( false ); {