Skip to content

Commit

Permalink
emit dataChanged in setData because Qt says to do so
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Aug 31, 2018
1 parent 0475ff9 commit 010295f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgssnappinglayertreemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ bool QgsSnappingLayerTreeModel::setData( const QModelIndex &index, const QVarian
config.setIndividualLayerSettings( vl, ls );
mProject->setSnappingConfig( config );
}
emit dataChanged( index, index );
return true;
}

Expand All @@ -572,6 +573,7 @@ bool QgsSnappingLayerTreeModel::setData( const QModelIndex &index, const QVarian
QgsSnappingConfig config = mProject->snappingConfig();
config.setIndividualLayerSettings( vl, ls );
mProject->setSnappingConfig( config );
emit dataChanged( index, index );
return true;
}
}
Expand All @@ -592,6 +594,7 @@ bool QgsSnappingLayerTreeModel::setData( const QModelIndex &index, const QVarian
QgsSnappingConfig config = mProject->snappingConfig();
config.setIndividualLayerSettings( vl, ls );
mProject->setSnappingConfig( config );
emit dataChanged( index, index );
return true;
}
}
Expand All @@ -612,6 +615,7 @@ bool QgsSnappingLayerTreeModel::setData( const QModelIndex &index, const QVarian
QgsSnappingConfig config = mProject->snappingConfig();
config.setIndividualLayerSettings( vl, ls );
mProject->setSnappingConfig( config );
emit dataChanged( index, index );
return true;
}
}
Expand All @@ -632,6 +636,7 @@ bool QgsSnappingLayerTreeModel::setData( const QModelIndex &index, const QVarian
avoidIntersectionsList.removeAll( vl );

mProject->setAvoidIntersectionsLayers( avoidIntersectionsList );
emit dataChanged( index, index );
return true;
}
}
Expand Down

0 comments on commit 010295f

Please sign in to comment.