Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
qgsapplayertreeviewmenuprovider.cpp: rename local variable to avoid c…
…ppcheck confusion / false positive
  • Loading branch information
rouault committed Jun 1, 2020
1 parent c530b52 commit db04b37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/qgsapplayertreeviewmenuprovider.cpp
Expand Up @@ -232,9 +232,9 @@ QMenu *QgsAppLayerTreeViewMenuProvider::createContextMenu()
// attribute table
QgsSettings settings;
QgsAttributeTableFilterModel::FilterMode initialMode = settings.enumValue( QStringLiteral( "qgis/attributeTableBehavior" ), QgsAttributeTableFilterModel::ShowAll );
QAction *attributeTable = menu->addAction( QgsApplication::getThemeIcon( QStringLiteral( "/mActionOpenTable.svg" ) ), tr( "&Open Attribute Table" ),
QgisApp::instance(), [ = ] { QgisApp::instance()->attributeTable( initialMode ); } );
attributeTable->setEnabled( vlayer->isValid() );
QAction *attributeTableAction = menu->addAction( QgsApplication::getThemeIcon( QStringLiteral( "/mActionOpenTable.svg" ) ), tr( "&Open Attribute Table" ),
QgisApp::instance(), [ = ] { QgisApp::instance()->attributeTable( initialMode ); } );
attributeTableAction->setEnabled( vlayer->isValid() );

// allow editing
const QgsVectorDataProvider *provider = vlayer->dataProvider();
Expand Down

0 comments on commit db04b37

Please sign in to comment.