|
@@ -72,7 +72,7 @@ QgsGeometryCheckerResultTab::QgsGeometryCheckerResultTab( QgisInterface *iface, |
|
|
connect( checker, &QgsGeometryChecker::errorAdded, this, &QgsGeometryCheckerResultTab::addError ); |
|
|
connect( checker, &QgsGeometryChecker::errorUpdated, this, &QgsGeometryCheckerResultTab::updateError ); |
|
|
connect( ui.tableWidgetErrors->selectionModel(), &QItemSelectionModel::selectionChanged, this, &QgsGeometryCheckerResultTab::onSelectionChanged ); |
|
|
connect( ui.buttonGroupSelectAction, static_cast<void ( QButtonGroup::* )( int )>( &QButtonGroup::buttonClicked ), this, &QgsGeometryCheckerResultTab::highlightErrors ); |
|
|
connect( ui.buttonGroupSelectAction, static_cast<void ( QButtonGroup::* )( int )>( &QButtonGroup::buttonClicked ), this, [this]( int ) { QgsGeometryCheckerResultTab::highlightErrors(); } ); |
|
|
connect( ui.pushButtonOpenAttributeTable, &QAbstractButton::clicked, this, &QgsGeometryCheckerResultTab::openAttributeTable ); |
|
|
connect( ui.pushButtonFixWithDefault, &QAbstractButton::clicked, this, &QgsGeometryCheckerResultTab::fixErrorsWithDefault ); |
|
|
connect( ui.pushButtonFixWithPrompt, &QAbstractButton::clicked, this, &QgsGeometryCheckerResultTab::fixErrorsWithPrompt ); |
|
@@ -388,7 +388,10 @@ void QgsGeometryCheckerResultTab::highlightErrors( bool current ) |
|
|
} |
|
|
} |
|
|
|
|
|
mIface->mapCanvas()->setExtent( totextent ); |
|
|
if ( !totextent.isEmpty() ) |
|
|
{ |
|
|
mIface->mapCanvas()->setExtent( totextent ); |
|
|
} |
|
|
mIface->mapCanvas()->refresh(); |
|
|
} |
|
|
|
|
|