Skip to content

Commit ba91c8f

Browse files
committed
respect the disabled option defined in the UI file
1 parent e2bf9c6 commit ba91c8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gui/qgsattributeeditor.cpp

+2-1
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)