mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
[processing] Avoid temporary flashing dialog showing when a distance parameter widget is constructed
Fixes #29438
This commit is contained in:
parent
fcdf1f6e78
commit
7c1b7fa27d
@ -880,12 +880,13 @@ QWidget *QgsProcessingDistanceWidgetWrapper::createWidget()
|
||||
mWarningLabel->setLayout( warningLayout );
|
||||
layout->insertWidget( 4, mWarningLabel );
|
||||
|
||||
setUnits( distanceDef->defaultUnit() );
|
||||
|
||||
QWidget *w = new QWidget();
|
||||
layout->setMargin( 0 );
|
||||
layout->setContentsMargins( 0, 0, 0, 0 );
|
||||
w->setLayout( layout );
|
||||
|
||||
setUnits( distanceDef->defaultUnit() );
|
||||
|
||||
return w;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user