Skip to content

Commit

Permalink
Show form in search mode (even if there are no rows)
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Jun 9, 2021
1 parent dac568f commit c13bbc3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/attributetable/qgsdualview.cpp
Expand Up @@ -711,11 +711,14 @@ void QgsDualView::toggleSearchMode( bool enabled )
{
setView( AttributeEditor );
mAttributeForm->setMode( QgsAttributeEditorContext::SearchMode );
mAttributeForm->setVisible( true );
}
else
{
mAttributeForm->setMode( QgsAttributeEditorContext::SingleEditMode );
mAttributeForm->setVisible( mFilterModel->rowCount( ) > 0 );
}

}

void QgsDualView::previewExpressionBuilder()
Expand Down

0 comments on commit c13bbc3

Please sign in to comment.