Skip to content

Commit

Permalink
Give feedback why multiedit/search is disabled with custom UI
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 15, 2016
1 parent f1e4c45 commit b6e97ca
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/qgsattributetabledialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,15 @@ QgsAttributeTableDialog::QgsAttributeTableDialog( QgsVectorLayer *theLayer, QWid
connect( mSearchFormButton, SIGNAL( toggled( bool ) ), mMainView, SLOT( toggleSearchMode( bool ) ) );
updateMultiEditButtonState();

if ( mLayer->editFormConfig()->layout() == QgsEditFormConfig::UiFileLayout )
{
//not supported with custom UI
mToggleMultiEditButton->setEnabled( false );
mToggleMultiEditButton->setToolTip( tr( "Multiedit is not supported when using custom UI forms" ) );
mSearchFormButton->setEnabled( false );
mSearchFormButton->setToolTip( tr( "Search is not supported when using custom UI forms" ) );
}

editingToggled();
}

Expand Down

0 comments on commit b6e97ca

Please sign in to comment.