qgis_11524.diff

patch - Benjamin Trigona-Harany, 2015-01-11 12:52 PM

Download (989 Bytes)

View differences:

qgis-2.6.1.b/src/gui/qgsrelationeditorwidget.cpp 2015-01-11 12:14:54.226624311 -0800
136 136
  QgsVectorLayer* lyr = relation.referencingLayer();
137 137

  
138 138
  bool canChangeAttributes = lyr->dataProvider()->capabilities() & QgsVectorDataProvider::ChangeAttributeValues;
139
  mToggleEditingButton->setEnabled( canChangeAttributes && !lyr->isReadOnly() );
139
  if ( canChangeAttributes && !lyr->isReadOnly() )
140
  {
141
    mToggleEditingButton->setEnabled( true );
142
    referencingLayerEditingToggled();
143
  }
144
  else
145
  {
146
    mToggleEditingButton->setEnabled( false );
147
  }
140 148

  
141 149
  // If not yet initialized, it is not (yet) visible, so we don't load it to be faster (lazy loading)
142 150
  // If it is already initialized, it has been set visible before and the currently shown feature is changing