mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Disable clear button in tracer widget to prevent a crash
Fix #20180 Not really a fix, but the other approach apparently causes a regression on some platforms.
This commit is contained in:
parent
012ad1cb65
commit
7f10a3a4a4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user