Skip to content

Commit

Permalink
Avoid temporary flashing dialog showing when a distance parameter wid…
Browse files Browse the repository at this point in the history
…get is constructed
  • Loading branch information
github-actions[bot] authored and nirvn committed Jan 6, 2020
1 parent a29532e commit a9edbd0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/processing/qgsprocessingwidgetwrapperimpl.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit a9edbd0

Please sign in to comment.