Skip to content

Commit 1ce2a10

Browse files
DelazJm-kuhn
authored andcommitted
Show only selected features vertices by default (#3821)
* Show only selected features vertices by default * Show only selected features vertices by default * Show only selected features vertices by default
1 parent b59fc04 commit 1ce2a10

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/app/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7915,7 +7915,7 @@ bool QgisApp::toggleEditing( QgsMapLayer *layer, bool allowCancel )
79157915

79167916
QSettings settings;
79177917
QString markerType = settings.value( QStringLiteral( "/qgis/digitizing/marker_style" ), "Cross" ).toString();
7918-
bool markSelectedOnly = settings.value( QStringLiteral( "/qgis/digitizing/marker_only_for_selected" ), false ).toBool();
7918+
bool markSelectedOnly = settings.value( QStringLiteral( "/qgis/digitizing/marker_only_for_selected" ), true ).toBool();
79197919

79207920
// redraw only if markers will be drawn
79217921
if (( !markSelectedOnly || vlayer->selectedFeatureCount() > 0 ) &&

src/app/qgsoptions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl )
881881
mSearchRadiusVertexEditComboBox->setCurrentIndex( index );
882882

883883
//vertex marker
884-
mMarkersOnlyForSelectedCheckBox->setChecked( mSettings->value( QStringLiteral( "/qgis/digitizing/marker_only_for_selected" ), false ).toBool() );
884+
mMarkersOnlyForSelectedCheckBox->setChecked( mSettings->value( QStringLiteral( "/qgis/digitizing/marker_only_for_selected" ), true ).toBool() );
885885

886886
mMarkerStyleComboBox->addItem( tr( "Semi transparent circle" ) );
887887
mMarkerStyleComboBox->addItem( tr( "Cross" ) );

src/core/qgsvectorlayerrenderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ QgsVectorLayerRenderer::QgsVectorLayerRenderer( QgsVectorLayer* layer, QgsRender
7171
mSimplifyGeometry = layer->simplifyDrawingCanbeApplied( mContext, QgsVectorSimplifyMethod::GeometrySimplification );
7272

7373
QSettings settings;
74-
mVertexMarkerOnlyForSelection = settings.value( QStringLiteral( "/qgis/digitizing/marker_only_for_selected" ), false ).toBool();
74+
mVertexMarkerOnlyForSelection = settings.value( QStringLiteral( "/qgis/digitizing/marker_only_for_selected" ), true ).toBool();
7575

7676
QString markerTypeString = settings.value( QStringLiteral( "/qgis/digitizing/marker_style" ), "Cross" ).toString();
7777
if ( markerTypeString == QLatin1String( "Cross" ) )

0 commit comments

Comments
 (0)