Skip to content

Commit 1ca3099

Browse files
author
jef
committed
fix #1274
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9250 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 97808fb commit 1ca3099

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/app/qgsattributetable.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,16 @@ QgsAttributeTable::~QgsAttributeTable()
103103

104104
void QgsAttributeTable::setReadOnly( bool b )
105105
{
106+
blockSignals(true);
107+
106108
setEditTriggers( b ? QAbstractItemView::NoEditTriggers :
107109
QAbstractItemView::DoubleClicked | QAbstractItemView::EditKeyPressed );
108110
if ( !b )
109111
{
110112
setColumnReadOnly( 0, true );
111113
}
114+
115+
blockSignals(false);
112116
}
113117

114118
void QgsAttributeTable::setColumnReadOnly( int col, bool ro )
@@ -435,6 +439,8 @@ void QgsAttributeTable::copySelectedRows()
435439

436440
void QgsAttributeTable::fillTable( QgsVectorLayer *layer )
437441
{
442+
blockSignals(true);
443+
438444
const QgsFieldMap &fields = layer->pendingFields();
439445

440446
// set up the column headers
@@ -482,6 +488,8 @@ void QgsAttributeTable::fillTable( QgsVectorLayer *layer )
482488
// Make each column wide enough to show all the contents
483489
for ( int i = 0; i < columnCount(); i++ )
484490
resizeColumnToContents( i );
491+
492+
blockSignals(false);
485493
}
486494

487495
void QgsAttributeTable::putFeatureInTable( int row, const QgsFeature& fet )

0 commit comments

Comments
 (0)