File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -103,12 +103,16 @@ QgsAttributeTable::~QgsAttributeTable()
103
103
104
104
void QgsAttributeTable::setReadOnly ( bool b )
105
105
{
106
+ blockSignals (true );
107
+
106
108
setEditTriggers ( b ? QAbstractItemView::NoEditTriggers :
107
109
QAbstractItemView::DoubleClicked | QAbstractItemView::EditKeyPressed );
108
110
if ( !b )
109
111
{
110
112
setColumnReadOnly ( 0 , true );
111
113
}
114
+
115
+ blockSignals (false );
112
116
}
113
117
114
118
void QgsAttributeTable::setColumnReadOnly ( int col, bool ro )
@@ -435,6 +439,8 @@ void QgsAttributeTable::copySelectedRows()
435
439
436
440
void QgsAttributeTable::fillTable ( QgsVectorLayer *layer )
437
441
{
442
+ blockSignals (true );
443
+
438
444
const QgsFieldMap &fields = layer->pendingFields ();
439
445
440
446
// set up the column headers
@@ -482,6 +488,8 @@ void QgsAttributeTable::fillTable( QgsVectorLayer *layer )
482
488
// Make each column wide enough to show all the contents
483
489
for ( int i = 0 ; i < columnCount (); i++ )
484
490
resizeColumnToContents ( i );
491
+
492
+ blockSignals (false );
485
493
}
486
494
487
495
void QgsAttributeTable::putFeatureInTable ( int row, const QgsFeature& fet )
You can’t perform that action at this time.
0 commit comments