diff --git a/src/gui/stac/qgsstacdownloadassetsdialog.cpp b/src/gui/stac/qgsstacdownloadassetsdialog.cpp index 3c9edd8d8459..6aeca1a88877 100644 --- a/src/gui/stac/qgsstacdownloadassetsdialog.cpp +++ b/src/gui/stac/qgsstacdownloadassetsdialog.cpp @@ -105,7 +105,7 @@ void QgsStacDownloadAssetsDialog::showContextMenu( QPoint p ) mContextMenu->clear(); const QString url = item->text( 5 ); - QAction *copyUrlAction = new QAction( tr( "Copy URL" ), this ); + QAction *copyUrlAction = new QAction( tr( "Copy URL" ), mContextMenu ); connect( copyUrlAction, &QAction::triggered, this, [url] { QApplication::clipboard()->setText( url );