Skip to content
Permalink
Browse files

Avoid temporary flashing dialog showing when a distance parameter wid…

…get is constructed
  • Loading branch information
github-actions authored and nirvn committed Jan 6, 2020
1 parent a29532e commit a9edbd0bf1e680b2bd622e8fd74abd8e0bacf1bf
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/gui/processing/qgsprocessingwidgetwrapperimpl.cpp
@@ -874,12 +874,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;
}

0 comments on commit a9edbd0

Please sign in to comment.
You can’t perform that action at this time.