Skip to content

Commit

Permalink
Merge pull request #458 from 3nids/respectUIimmutableoption
Browse files Browse the repository at this point in the history
respect the disabled option defined in the UI file
  • Loading branch information
NathanW2 committed Mar 5, 2013
2 parents a976ecb + ba91c8f commit 37ee4d8
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 37ee4d8

Please sign in to comment.