Skip to content

Commit b6e97ca

Browse files
committed
Give feedback why multiedit/search is disabled with custom UI
1 parent f1e4c45 commit b6e97ca

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/app/qgsattributetabledialog.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,15 @@ QgsAttributeTableDialog::QgsAttributeTableDialog( QgsVectorLayer *theLayer, QWid
270270
connect( mSearchFormButton, SIGNAL( toggled( bool ) ), mMainView, SLOT( toggleSearchMode( bool ) ) );
271271
updateMultiEditButtonState();
272272

273+
if ( mLayer->editFormConfig()->layout() == QgsEditFormConfig::UiFileLayout )
274+
{
275+
//not supported with custom UI
276+
mToggleMultiEditButton->setEnabled( false );
277+
mToggleMultiEditButton->setToolTip( tr( "Multiedit is not supported when using custom UI forms" ) );
278+
mSearchFormButton->setEnabled( false );
279+
mSearchFormButton->setToolTip( tr( "Search is not supported when using custom UI forms" ) );
280+
}
281+
273282
editingToggled();
274283
}
275284

0 commit comments

Comments
 (0)