Skip to content
Permalink
Browse files

Give feedback why multiedit/search is disabled with custom UI

  • Loading branch information
nyalldawson committed Jun 15, 2016
1 parent f1e4c45 commit b6e97cadb892e2692a77e60377b50b829b23bf47
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/app/qgsattributetabledialog.cpp
@@ -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();
}

0 comments on commit b6e97ca

Please sign in to comment.
You can’t perform that action at this time.