Skip to content

Commit

Permalink
Only change project snapping settings if it was changed in the dialog
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8189 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Mar 4, 2008
1 parent f9a5d52 commit 2a4f4bf
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/app/qgsprojectproperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2a4f4bf

Please sign in to comment.