Fix seek for double clicking reloc item

This commit is contained in:
Florian Märkl 2017-04-01 14:43:57 +02:00 committed by Sergi Àlvarez i Capilla
parent a22b97a53b
commit 24256f239d
2 changed files with 3 additions and 3 deletions

View File

@ -100,7 +100,7 @@ MainWindow::MainWindow(QWidget *parent) :
backButton->setIcon(QIcon(":/new/prefix1/img/icons/arrow_left.png"));
//backButton->setPopupMode(QToolButton::DelayedPopup);
ui->mainToolBar->insertWidget(ui->actionForward, backButton);
//connect(backButton, SIGNAL(clicked()), this, SLOT(on_backButton_clicked()));
connect(backButton, SIGNAL(clicked()), this, SLOT(on_backButton_clicked()));
// Sepparator between undo/redo and goto lineEdit
QWidget* spacer3 = new QWidget();

View File

@ -23,8 +23,8 @@ void RelocsWidget::on_relocsTreeWidget_itemDoubleClicked(QTreeWidgetItem *item,
{
// Get offset and name of item double clicked
// TODO: use this info to change disasm contents
QString offset = item->text(0);
QString name = item->text(1);
QString offset = item->text(1);
QString name = item->text(2);
main->seek(offset, name);
this->main->memoryDock->raise();
}