Skip to content

Commit ae2c06c

Browse files
committedApr 27, 2017
Followup 20197c2, fix orphaned highlights remaining on maps
1 parent cb0a1f8 commit ae2c06c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/app/qgsfeatureaction.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "qgsguivectorlayertools.h"
2323
#include "qgsidentifyresultsdialog.h"
2424
#include "qgslogger.h"
25+
#include "qgshighlight.h"
2526
#include "qgsmapcanvas.h"
2627
#include "qgsproject.h"
2728
#include "qgsvectordataprovider.h"
@@ -105,7 +106,9 @@ bool QgsFeatureAction::viewFeatureForm( QgsHighlight *h )
105106
QgsAttributeDialog *dialog = QgisApp::instance()->findChild<QgsAttributeDialog *>( name );
106107
if ( dialog )
107108
{
109+
delete h;
108110
dialog->raise();
111+
dialog->activateWindow();
109112
return true;
110113
}
111114

0 commit comments

Comments
 (0)
Please sign in to comment.