AK/xref-dialog-fix (#1384)

This commit is contained in:
Anton Krasnokutskiy 2019-03-24 12:35:40 -07:00 committed by Itay Cohen
parent 78308c7209
commit e709a35723
3 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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<FunctionDescription>();
XrefsDialog x(this);
XrefsDialog x(nullptr);
x.fillRefsForAddress(function.offset, function.name, true);
x.exec();
}

View File

@ -271,7 +271,7 @@ void StringsWidget::on_actionX_refs_triggered()
StringDescription str = ui->stringsTreeView->selectionModel()->currentIndex().data(
StringsModel::StringDescriptionRole).value<StringDescription>();
XrefsDialog x(this);
XrefsDialog x(nullptr);
x.fillRefsForAddress(str.vaddr, RAddressString(str.vaddr), false);
x.setAttribute(Qt::WA_DeleteOnClose);
x.exec();