Skip to content
Permalink
Browse files
Also toggle 'add to group' enabled status based on whether a project …
…is selected
  • Loading branch information
nyalldawson committed Jul 15, 2021
1 parent 91b2dc2 commit 5c354210397612e90d6bdf99189ab5d0bbb5d3ed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsprovidersublayersdialog.cpp
@@ -322,6 +322,6 @@ void QgsProviderSublayersDialog::treeSelectionChanged( const QItemSelection &sel

mButtonBox->button( QDialogButtonBox::Ok )->setEnabled( !mLayersTree->selectionModel()->selectedRows().empty() );

mCbxAddToGroup->setEnabled( !selectedANonLayerItem );
mButtonBox->button( QDialogButtonBox::Ok )->setText( selectedANonLayerItem ? tr( "Open" ) : tr( "Add Layers" ) );

}

0 comments on commit 5c35421

Please sign in to comment.