Showing with 8 additions and 8 deletions.
  1. +0 −1 doc/CONTRIBUTORS
  2. +4 −4 python/plugins/fTools/tools/doIntersectLines.py
  3. +3 −2 src/app/qgisapp.cpp
  4. +1 −1 src/app/qgswmssourceselect.cpp
1 change: 0 additions & 1 deletion doc/CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# feedback, reviews and/or many other things that have aided the development of
# QGIS:
#
Alexander Bruy
Andres Manz
Anita Graser
Arthur Nanni
Expand Down
8 changes: 4 additions & 4 deletions python/plugins/fTools/tools/doIntersectLines.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ def __init__(self, iface):

def populateLayers( self ):
layers = ftools_utils.getLayerNames([QGis.Line])
QObject.disconnect(self.inLine1, SIGNAL("currentIndexChanged(QString)"), self.update1)
QObject.disconnect(self.inLine2, SIGNAL("currentIndexChanged(QString)"), self.update2)
self.inLine1.blockSignals( True )
self.inLine2.blockSignals( True )
self.inLine1.clear()
self.inLine2.clear()
QObject.connect(self.inLine1, SIGNAL("currentIndexChanged(QString)"), self.update1)
QObject.connect(self.inLine2, SIGNAL("currentIndexChanged(QString)"), self.update2)
self.inLine1.blockSignals( False )
self.inLine2.blockSignals( False )
self.inLine1.addItems(layers)
self.inLine2.addItems(layers)

Expand Down
5 changes: 3 additions & 2 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5734,9 +5734,10 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
//start editing/stop editing
if ( dprovider->capabilities() & QgsVectorDataProvider::EditingCapabilities )
{
mActionToggleEditing->setEnabled( !vlayer->isReadOnly() );
bool canChangeAttributes = dprovider->capabilities() & QgsVectorDataProvider::ChangeAttributeValues;
mActionToggleEditing->setEnabled( canChangeAttributes && !vlayer->isReadOnly() );
mActionToggleEditing->setChecked( vlayer->isEditable() );
mActionSaveEdits->setEnabled( vlayer->isEditable() );
mActionSaveEdits->setEnabled( canChangeAttributes && vlayer->isEditable() );
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgswmssourceselect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ void QgsWMSSourceSelect::enableLayersForCrs( QTreeWidgetItem *item )
if ( !layerName.isEmpty() && styleName.isEmpty() )
{
// layer
bool disable = !item->data( 0, Qt::UserRole + 2 ).toStringList().contains( mCRS );
bool disable = !item->data( 0, Qt::UserRole + 2 ).toStringList().contains( mCRS, Qt::CaseInsensitive );

item->setDisabled( disable );

Expand Down