Skip to content

Commit

Permalink
Fix geometry generator type visibility glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Mar 12, 2019
1 parent 67555c8 commit e19527c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/app/qgslabelinggui.cpp
Expand Up @@ -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()
Expand Down

0 comments on commit e19527c

Please sign in to comment.