1
0
Fork 0

GUI: fixed a bug in the XrefBrowseDialog

This commit is contained in:
mrexodia 2016-10-16 14:42:48 +02:00
parent a3a9dbbbe9
commit 1d9835c84f
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
2 changed files with 8 additions and 1 deletions

View File

@ -1091,7 +1091,6 @@ void CPUDisassembly::gotoXrefSlot()
mXrefDlg = new XrefBrowseDialog(this);
mXrefDlg->setup(getSelectedVa());
mXrefDlg->showNormal();
mXrefDlg->setFocus();
}
void CPUDisassembly::followActionSlot()

View File

@ -10,13 +10,20 @@ XrefBrowseDialog::XrefBrowseDialog(QWidget* parent) :
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint | Qt::MSWindowsFixedSizeDialogHint);
setWindowIcon(DIcon("xrefs.png"));
setModal(false);
mXrefInfo.refcount = 0;
}
void XrefBrowseDialog::setup(duint address, QString command)
{
if(mXrefInfo.refcount)
{
BridgeFree(mXrefInfo.references);
mXrefInfo.refcount = 0;
}
mCommand = command;
mAddress = address;
mPrevSelectionSize = 0;
ui->listWidget->clear();
if(DbgXrefGet(address, &mXrefInfo))
{
char disasm[GUI_MAX_DISASSEMBLY_SIZE] = "";
@ -30,6 +37,7 @@ void XrefBrowseDialog::setup(duint address, QString command)
}
ui->listWidget->setCurrentRow(0);
}
ui->listWidget->setFocus();
}
void XrefBrowseDialog::changeAddress(duint address)