From e709a357239b144365ad20789f214dd7a34ebe9d Mon Sep 17 00:00:00 2001 From: Anton Krasnokutskiy <48821537+AntonReborn@users.noreply.github.com> Date: Sun, 24 Mar 2019 12:35:40 -0700 Subject: [PATCH] AK/xref-dialog-fix (#1384) --- src/menus/DisassemblyContextMenu.cpp | 2 +- src/widgets/FunctionsWidget.cpp | 2 +- src/widgets/StringsWidget.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/menus/DisassemblyContextMenu.cpp b/src/menus/DisassemblyContextMenu.cpp index e05b2abc..1c86e282 100644 --- a/src/menus/DisassemblyContextMenu.cpp +++ b/src/menus/DisassemblyContextMenu.cpp @@ -716,7 +716,7 @@ void DisassemblyContextMenu::on_actionSetFunctionVarTypes_triggered() void DisassemblyContextMenu::on_actionXRefs_triggered() { - XrefsDialog dialog(this); + XrefsDialog dialog(nullptr); dialog.fillRefsForAddress(offset, RAddressString(offset), false); dialog.exec(); } diff --git a/src/widgets/FunctionsWidget.cpp b/src/widgets/FunctionsWidget.cpp index ce816e21..54fd3b80 100644 --- a/src/widgets/FunctionsWidget.cpp +++ b/src/widgets/FunctionsWidget.cpp @@ -655,7 +655,7 @@ void FunctionsWidget::on_action_References_triggered() // Get selected item in functions tree view FunctionDescription function = ui->functionsTreeView->selectionModel()->currentIndex().data( FunctionModel::FunctionDescriptionRole).value(); - XrefsDialog x(this); + XrefsDialog x(nullptr); x.fillRefsForAddress(function.offset, function.name, true); x.exec(); } diff --git a/src/widgets/StringsWidget.cpp b/src/widgets/StringsWidget.cpp index 52686452..73a32402 100644 --- a/src/widgets/StringsWidget.cpp +++ b/src/widgets/StringsWidget.cpp @@ -271,7 +271,7 @@ void StringsWidget::on_actionX_refs_triggered() StringDescription str = ui->stringsTreeView->selectionModel()->currentIndex().data( StringsModel::StringDescriptionRole).value(); - XrefsDialog x(this); + XrefsDialog x(nullptr); x.fillRefsForAddress(str.vaddr, RAddressString(str.vaddr), false); x.setAttribute(Qt::WA_DeleteOnClose); x.exec();