Skip to content

Commit 37ee4d8

Browse files
committed
Merge pull request #458 from 3nids/respectUIimmutableoption
respect the disabled option defined in the UI file
2 parents a976ecb + ba91c8f commit 37ee4d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gui/qgsattributeeditor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,8 @@ QWidget *QgsAttributeEditor::createAttributeEditor( QWidget *parent, QWidget *ed
532532

533533
if ( myWidget )
534534
{
535-
myWidget->setDisabled( editType == QgsVectorLayer::Immutable );
535+
if (editType == QgsVectorLayer::Immutable)
536+
myWidget->setDisabled( true );
536537

537538
QgsStringRelay* relay = NULL;
538539

0 commit comments

Comments
 (0)