aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2022-06-27 14:19:17 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2022-06-27 12:41:21 +0000
commit1a144b4bdd5abe8fbdfb2a854763ba27fd2a9efe (patch)
tree4e5b48a102f57f31d93862769b6a4434088dc08e
parent1956fa03659bb4cd225cb66c712c0319615d0685 (diff)
AssetExporterPlugin: Don't leak action on shutdownv8.0.0-beta2
Detected by memory analyzer. Change-Id: Iddfe613e8c7267de24d8d9cc07e1e0c7357e383f Reviewed-by: hjk <hjk@qt.io>
-rw-r--r--src/plugins/qmldesigner/assetexporterplugin/assetexporterplugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/assetexporterplugin/assetexporterplugin.cpp b/src/plugins/qmldesigner/assetexporterplugin/assetexporterplugin.cpp
index 7809b57e71..c7e4408cb1 100644
--- a/src/plugins/qmldesigner/assetexporterplugin/assetexporterplugin.cpp
+++ b/src/plugins/qmldesigner/assetexporterplugin/assetexporterplugin.cpp
@@ -105,7 +105,7 @@ void AssetExporterPlugin::onExport()
void AssetExporterPlugin::addActions()
{
- auto exportAction = new QAction(tr("Export Components"));
+ auto exportAction = new QAction(tr("Export Components"), this);
exportAction->setToolTip(tr("Export components in the current project."));
connect(exportAction, &QAction::triggered, this, &AssetExporterPlugin::onExport);
Core::Command *cmd = Core::ActionManager::registerAction(exportAction, Constants::EXPORT_QML);