mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-21 20:36:09 +00:00
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:
parent
575952d22e
commit
832dae38b4
@ -875,7 +875,7 @@ void DisassemblyContextMenu::on_actionSetFunctionVarTypes_triggered()
|
|||||||
return;
|
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
|
if (dialog.empty()) { // don't show the dialog if there are no variables
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user