Skip to content

Commit

Permalink
Don't disable JsonEditWidget by readonly layer (widget is alway reado…
Browse files Browse the repository at this point in the history
…nly)
  • Loading branch information
domi4484 committed Jul 14, 2021
1 parent 298a451 commit 50fca8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/editorwidgets/qgsjsoneditwrapper.cpp
Expand Up @@ -79,7 +79,7 @@ void QgsJsonEditWrapper::updateValues( const QVariant &value, const QVariantList

void QgsJsonEditWrapper::setEnabled( bool enabled )
{
if ( mJsonEditWidget )
mJsonEditWidget->setEnabled( enabled );
// No need to disable JsonEditWidget as it is already read only
Q_UNUSED( enabled )
}

0 comments on commit 50fca8f

Please sign in to comment.