diff --git a/qarm/qarm.cc b/qarm/qarm.cc index 4822ab9..c15fe25 100644 --- a/qarm/qarm.cc +++ b/qarm/qarm.cc @@ -99,7 +99,6 @@ qarm::qarm(QApplication *app): connect(toolbar, SIGNAL(showTLB()), tlbWindow, SLOT(show())); connect(toolbar, SIGNAL(hideTLB()), tlbWindow, SLOT(hide())); connect(tlbWindow, SIGNAL(hiding()), toolbar, SLOT(uncheckTLB())); - connect(this, SIGNAL(resetMachine()), tlbWindow, SIGNAL(onMachineReset())); connect(clock, SIGNAL(timeout()), this, SLOT(step())); @@ -107,6 +106,7 @@ qarm::qarm(QApplication *app): connect(this, SIGNAL(resetMachine()), this, SIGNAL(resetDisplay())); connect(mac, SIGNAL(dataReady(Word*,Word*,Word*,Word,Word,Word,QString)), display, SLOT(updateVals(Word*,Word*,Word*,Word,Word,Word,QString))); connect(this, SIGNAL(resetDisplay()), display, SLOT(reset())); + connect(this, SIGNAL(resetMachine()), tlbWindow, SIGNAL(onMachineReset())); connect(this, SIGNAL(stopSig()), clock, SLOT(stop())); connect(this, SIGNAL(stopSig()), toolbar, SLOT(stop())); diff --git a/qarm/tlb_window.cc b/qarm/tlb_window.cc index ad8a718..f6136e8 100644 --- a/qarm/tlb_window.cc +++ b/qarm/tlb_window.cc @@ -32,6 +32,7 @@ tlb_window::tlb_window(machine *mac, QWidget * parent, Qt::WindowFlags flags): tlbView = new QTableView; TLBModel *innermodel = new TLBModel(mac, this); connect(this, SIGNAL(onMachineReset()), innermodel, SLOT(onMachineReset())); + connect(innermodel, SIGNAL(dataChanged(QModelIndex,QModelIndex)), tlbView, SLOT(dataChanged(QModelIndex,QModelIndex))); tlbView->setModel(innermodel); tlbView->setSelectionMode(QAbstractItemView::SingleSelection); tlbView->setSelectionBehavior(QAbstractItemView::SelectRows);