File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -83,4 +83,7 @@ class QgsIdentifyMenu : QMenu
83
83
* @param selectedAction if specified, this will allow to know which action has been triggered
84
84
*/
85
85
QList<QgsMapToolIdentify::IdentifyResult> exec( const QList<QgsMapToolIdentify::IdentifyResult> idResults, QPoint pos );
86
+
87
+ protected:
88
+ virtual void closeEvent( QCloseEvent *e );
86
89
};
Original file line number Diff line number Diff line change @@ -151,6 +151,12 @@ QList<QgsMapToolIdentify::IdentifyResult> QgsIdentifyMenu::exec( const QList<Qgs
151
151
}
152
152
}
153
153
154
+ void QgsIdentifyMenu::closeEvent ( QCloseEvent* e )
155
+ {
156
+ deleteRubberBands ();
157
+ QMenu::closeEvent ( e );
158
+ }
159
+
154
160
void QgsIdentifyMenu::addRasterLayer ( QgsMapLayer* layer )
155
161
{
156
162
QAction* layerAction;
Original file line number Diff line number Diff line change @@ -129,6 +129,9 @@ class GUI_EXPORT QgsIdentifyMenu : public QMenu
129
129
*/
130
130
QList<QgsMapToolIdentify::IdentifyResult> exec ( const QList<QgsMapToolIdentify::IdentifyResult> idResults, QPoint pos );
131
131
132
+ protected:
133
+ virtual void closeEvent ( QCloseEvent *e );
134
+
132
135
private slots:
133
136
void handleMenuHover ();
134
137
void deleteRubberBands ();
You can’t perform that action at this time.
0 commit comments