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.
This commit is contained in:
Florian Märkl 2022-05-30 18:13:55 +02:00 committed by Anton Kochkov
parent 575952d22e
commit 832dae38b4

View File

@ -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;
}