@@ -113,16 +113,6 @@ QgsAttributeTableDialog::QgsAttributeTableDialog( QgsVectorLayer *layer, QgsAttr
113113 connect ( mActionExpressionSelect , &QAction::triggered, this , &QgsAttributeTableDialog::mActionExpressionSelect_triggered );
114114 connect ( mMainView , &QgsDualView::showContextMenuExternally, this , &QgsAttributeTableDialog::showContextMenu );
115115
116- // Block/unblock table updates (feature cache signals)
117- connect ( QgisApp::instance (), &QgisApp::attributeTableUpdateBlocked, this , [ = ]( const QgsVectorLayer * layer, const bool blocked )
118- {
119- if ( layer == mLayer )
120- this ->blockCacheUpdateSignals ( blocked );
121- } );
122- // Massive rollbacks can also freeze the GUI due to the feature cache signals
123- connect ( mLayer , &QgsVectorLayer::beforeRollBack, this , [ = ] { this ->blockCacheUpdateSignals ( true ); } );
124- connect ( mLayer , &QgsVectorLayer::afterRollBack, this , [ = ] { this ->blockCacheUpdateSignals ( false ); } );
125-
126116 const QgsFields fields = mLayer ->fields ();
127117 for ( const QgsField &field : fields )
128118 {
@@ -743,6 +733,7 @@ void QgsAttributeTableDialog::mActionOpenFieldCalculator_triggered()
743733 if ( calc.exec () == QDialog::Accepted )
744734 {
745735 int col = masterModel->fieldCol ( calc.changedAttributeId () );
736+
746737 if ( col >= 0 )
747738 {
748739 masterModel->reload ( masterModel->index ( 0 , col ), masterModel->index ( masterModel->rowCount () - 1 , col ) );
@@ -1154,15 +1145,6 @@ void QgsAttributeTableDialog::setFilterExpression( const QString &filterString,
11541145 mMainView ->setFilterMode ( QgsAttributeTableFilterModel::ShowFilteredList );
11551146}
11561147
1157- void QgsAttributeTableDialog::blockCacheUpdateSignals ( const bool block )
1158- {
1159- QgsAttributeTableModel *masterModel = mMainView ->masterModel ();
1160-
1161- if ( ! masterModel )
1162- return ;
1163-
1164- masterModel->layerCache ()->blockSignals ( block );
1165- }
11661148
11671149void QgsAttributeTableDialog::deleteFeature ( const QgsFeatureId fid )
11681150{
0 commit comments