Showing with 2 additions and 1 deletion.
  1. +2 −1 src/gui/qgsattributeeditor.cpp
3 changes: 2 additions & 1 deletion src/gui/qgsattributeeditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,8 @@ QWidget *QgsAttributeEditor::createAttributeEditor( QWidget *parent, QWidget *ed

if ( myWidget )
{
myWidget->setDisabled( editType == QgsVectorLayer::Immutable );
if (editType == QgsVectorLayer::Immutable)
myWidget->setDisabled( true );

QgsStringRelay* relay = NULL;

Expand Down