mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
Followup 20197c2, fix orphaned highlights remaining on maps
This commit is contained in:
parent
cb0a1f8408
commit
ae2c06c1fe
@ -22,6 +22,7 @@
|
||||
#include "qgsguivectorlayertools.h"
|
||||
#include "qgsidentifyresultsdialog.h"
|
||||
#include "qgslogger.h"
|
||||
#include "qgshighlight.h"
|
||||
#include "qgsmapcanvas.h"
|
||||
#include "qgsproject.h"
|
||||
#include "qgsvectordataprovider.h"
|
||||
@ -105,7 +106,9 @@ bool QgsFeatureAction::viewFeatureForm( QgsHighlight *h )
|
||||
QgsAttributeDialog *dialog = QgisApp::instance()->findChild<QgsAttributeDialog *>( name );
|
||||
if ( dialog )
|
||||
{
|
||||
delete h;
|
||||
dialog->raise();
|
||||
dialog->activateWindow();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user