From 832dae38b493b699ff3984ea005e9e0a59394000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Mon, 30 May 2022 18:13:55 +0200 Subject: [PATCH] Fix EditVariablesDialog parenting (#2954) This fixes the dialog being placed weirdly when using the 'Y' shortcut because it was parented to the DisassemblyContextMenu, which itself might not be shown at all. --- src/menus/DisassemblyContextMenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/menus/DisassemblyContextMenu.cpp b/src/menus/DisassemblyContextMenu.cpp index a60e2196..c0791493 100644 --- a/src/menus/DisassemblyContextMenu.cpp +++ b/src/menus/DisassemblyContextMenu.cpp @@ -875,7 +875,7 @@ void DisassemblyContextMenu::on_actionSetFunctionVarTypes_triggered() return; } - EditVariablesDialog dialog(fcn->addr, curHighlightedWord, this); + EditVariablesDialog dialog(fcn->addr, curHighlightedWord, this->mainWindow); if (dialog.empty()) { // don't show the dialog if there are no variables return; }