We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3da460e commit 0c73542Copy full SHA for 0c73542
src/gui/attributetable/qgsdualview.cpp
@@ -387,10 +387,7 @@ void QgsDualView::copyCellContent() const
387
if ( action && action->data().isValid() && action->data().canConvert<QModelIndex>() )
388
{
389
QModelIndex index = action->data().value<QModelIndex>();
390
-
391
- QgsFeature f = masterModel()->feature( index );
392
- int attrIndex = mMasterModel->fieldIdx( index.column() );
393
- QVariant var = f.attributes().at( attrIndex );
+ QVariant var = masterModel()->data( index, Qt::DisplayRole );
394
QApplication::clipboard()->setText( var.toString() );
395
}
396
0 commit comments