Skip to content
Permalink
Browse files

Fix geometry generator type visibility glitch

  • Loading branch information
m-kuhn committed Mar 12, 2019
1 parent 67555c8 commit e19527c369e0e5f0e6eafbea401e440c1cebed57
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/app/qgslabelinggui.cpp
@@ -757,7 +757,15 @@ void QgsLabelingGui::validateGeometryGeneratorExpression()
}
}

mGeometryGeneratorWarningLabel->setVisible( !valid );
// The collapsible groupbox internally changes the visibility of this
// Work around by setting the visibility deferred in the next event loop cycle.
QTimer *timer = new QTimer();
connect( timer, &QTimer::timeout, this, [this, valid]()
{
mGeometryGeneratorWarningLabel->setVisible( !valid );
} );
connect( timer, &QTimer::timeout, timer, &QTimer::deleteLater );
timer->start( 0 );
}

void QgsLabelingGui::determineGeometryGeneratorType()

0 comments on commit e19527c

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