Skip to content

Commit

Permalink
respect the disabled option defined in the UI file
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Mar 5, 2013
1 parent e2bf9c6 commit ba91c8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/qgsattributeeditor.cpp
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

0 comments on commit ba91c8f

Please sign in to comment.