Navigation Menu

Skip to content

Commit

Permalink
Update src/plugins/geometry_checker/qgsgeometrycheckerresulttab.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 23, 2021
1 parent a1dd968 commit c779f15
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/plugins/geometry_checker/qgsgeometrycheckerresulttab.cpp
Expand Up @@ -333,8 +333,7 @@ void QgsGeometryCheckerResultTab::highlightErrors( bool current )

if ( current )
{
QTableWidgetItem *item = ui.tableWidgetErrors->currentItem();
if ( item )
if ( QTableWidgetItem *item = ui.tableWidgetErrors->currentItem() )
{
items.append( item );
}
Expand Down

0 comments on commit c779f15

Please sign in to comment.