Skip to content
Permalink
Browse files

Merge pull request #8266 from elpaso/bugfix-20180-doublespinbox-crash

Do not delete the clear action (and don't crash)
  • Loading branch information
elpaso committed Oct 23, 2018
2 parents 5e6eef3 + 7f10a3a commit d277fb806ec234f3e0837f65148aecf005f1f0d0
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/app/qgssnappingwidget.cpp
@@ -201,7 +201,10 @@ QgsSnappingWidget::QgsSnappingWidget( QgsProject *project, QgsMapCanvas *canvas,
mTracingOffsetSpinBox->setRange( -1000000, 1000000 );
mTracingOffsetSpinBox->setDecimals( 6 );
mTracingOffsetSpinBox->setClearValue( 0 );
mTracingOffsetSpinBox->setClearValueMode( QgsDoubleSpinBox::CustomValue );
mTracingOffsetSpinBox->setClearValueMode( QgsDoubleSpinBox::ClearValueMode::CustomValue );
// Note: set to false to "fix" a crash
// See https://github.com/qgis/QGIS/pull/8266 for some more context
mTracingOffsetSpinBox->setShowClearButton( false );
QMenu *tracingMenu = new QMenu( this );
QWidgetAction *widgetAction = new QWidgetAction( tracingMenu );
QVBoxLayout *tracingWidgetLayout = new QVBoxLayout;

0 comments on commit d277fb8

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