Skip to content
Permalink
Browse files

Only change project snapping settings if it was changed in the dialog

git-svn-id: http://svn.osgeo.org/qgis/trunk@8189 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Mar 4, 2008
1 parent e4e3ded commit 4b7a4015f9dfde73b279c0d080570346b9fb7e68
Showing with 8 additions and 4 deletions.
  1. +8 −4 src/app/qgsprojectproperties.cpp
@@ -329,10 +329,14 @@ void QgsProjectProperties::apply()
snapToList << "to_vertex_and_segment";
}
}
QgsProject::instance()->writeEntry("Digitizing", "/LayerSnappingList", layerIdList);
QgsProject::instance()->writeEntry("Digitizing", "/LayerSnapToList", snapToList);
QgsProject::instance()->writeEntry("Digitizing", "/LayerSnappingToleranceList", toleranceList);
QgsProject::instance()->writeEntry("Digitizing", "/LayerSnappingEnabledList", enabledList);

if(mSnappingLayerSettings.size() > 0)
{
QgsProject::instance()->writeEntry("Digitizing", "/LayerSnappingList", layerIdList);
QgsProject::instance()->writeEntry("Digitizing", "/LayerSnapToList", snapToList);
QgsProject::instance()->writeEntry("Digitizing", "/LayerSnappingToleranceList", toleranceList);
QgsProject::instance()->writeEntry("Digitizing", "/LayerSnappingEnabledList", enabledList);
}

//todo XXX set canvas colour
emit refresh();

0 comments on commit 4b7a401

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