1
0
Fork 0

GUI: properly invalidate GUI between restarts + fixed focus bug

This commit is contained in:
mrexodia 2016-10-23 14:16:16 +02:00
parent cf9c48b99f
commit de16322550
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
3 changed files with 5 additions and 3 deletions

View File

@ -1037,6 +1037,8 @@ void AbstractTableView::addColumnAt(int width, const QString & title, bool isCli
void AbstractTableView::setRowCount(dsint count)
{
updateScrollBarRange(count);
if(mRowCount != count)
mShouldReload = true;
mRowCount = count;
}

View File

@ -1797,6 +1797,7 @@ void Disassembly::disassembleClear()
mMemPage->setAttributes(0, 0);
mDisasm->getEncodeMap()->setMemoryRegion(0);
setRowCount(0);
setTableOffset(0);
reloadData();
}

View File

@ -320,10 +320,7 @@ void CPUStack::updateFreezeStackAction()
if(bStackFrozen)
mFreezeStack->setText(tr("Unfreeze the stack"));
else
{
mFreezeStack->setText(tr("Freeze the stack"));
gotoCspSlot();
}
mFreezeStack->setChecked(bStackFrozen);
}
@ -993,6 +990,8 @@ void CPUStack::freezeStackSlot()
bStackFrozen = !bStackFrozen;
updateFreezeStackAction();
if(!bStackFrozen)
gotoCspSlot();
}
void CPUStack::dbgStateChangedSlot(DBGSTATE state)