Avoid corrupted overlapping docks when first changing from dialog to dock

This commit is contained in:
Nyall Dawson 2025-06-03 15:51:24 +10:00
parent b4187bb3ad
commit 934bf47e2f

View File

@ -428,7 +428,7 @@ void QgsDockableWidgetHelper::setupDockWidget( const QStringList &tabSiblings )
QMetaObject::invokeMethod( mDock, [this] {
if (mIsDockFloating && sSettingsDockGeometry->exists( mSettingKeyDockId ) )
mDock->restoreGeometry( sSettingsDockGeometry->value( mSettingKeyDockId ).toByteArray() );
else
else if ( mIsDockFloating )
mDock->setGeometry( mDockGeometry ); }, Qt::QueuedConnection );
}