Skip to content
Permalink
Browse files

[processing] Avoid temporary flashing dialog showing when a distance …

…parameter widget is constructed

Fixes #29438
  • Loading branch information
nyalldawson committed Jan 5, 2020
1 parent fcdf1f6 commit 7c1b7fa27d83f7e5d26f7a5a053ffc6ec4a5e607
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/gui/processing/qgsprocessingwidgetwrapperimpl.cpp
@@ -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;
}

0 comments on commit 7c1b7fa

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