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 GitHub
parent 26e4f4acb8
commit 3fc3d8d878
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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