Skip to content

Commit c665805

Browse files
committed
followup faf4b7f
1 parent faf4b7f commit c665805

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/gui/qgsidentifymenu.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,7 @@ QList<QgsMapToolIdentify::IdentifyResult> QgsIdentifyMenu::exec( const QList<Qgs
139139
// delete actions
140140
clear();
141141
// also remove the QgsActionMenu
142-
QList<QgsActionMenu*> actionMenus = findChildren<QgsActionMenu*>();
143-
Q_FOREACH ( QgsActionMenu* actionMenu, actionMenus )
144-
{
145-
delete actionMenu;
146-
}
142+
qDeleteAll( findChildren<QgsActionMenu*>() );
147143

148144
if ( externalAction && !mResultsIfExternalAction )
149145
{

0 commit comments

Comments
 (0)