Skip to content
Permalink
Browse files

Fix quasi-leak in attribute table right click menu

The actions should be parented to the menu, not the form, or they'll
exist for the lifetime of the form instead of the menu

(cherry picked from commit 1b3b8c3)
(cherry picked from commit d845b76)
  • Loading branch information
nyalldawson committed Jun 2, 2020
1 parent c40bc94 commit 1283ea3e055ee3b4371977a6c3b9272fdffe34ae
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/attributetable/qgsdualview.cpp
@@ -696,7 +696,7 @@ void QgsDualView::viewWillShowContextMenu( QMenu *menu, const QModelIndex &maste
return;
}

QAction *copyContentAction = new QAction( tr( "Copy Cell Content" ), this );
QAction *copyContentAction = menu->addAction( tr( "Copy Cell Content" ) );
menu->addAction( copyContentAction );
connect( copyContentAction, &QAction::triggered, this, [masterIndex, this]
{

0 comments on commit 1283ea3

Please sign in to comment.
You can’t perform that action at this time.