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 ); {