fixed show/hide FPU bug

This commit is contained in:
torusrxxx 2020-08-07 20:32:32 +08:00 committed by Duncan Ogilvie
parent df47a27d14
commit e36ca4c982

View File

@ -1200,6 +1200,7 @@ void RegistersView::ShowFPU(bool set_showfpu)
{
mShowFpu = set_showfpu;
InitMappings();
setFixedHeight(getEstimateHeight());
reload();
}
@ -2069,10 +2070,7 @@ void RegistersView::appendRegister(QString & text, REGISTER_NAME reg, const char
void RegistersView::onChangeFPUViewAction()
{
if(mShowFpu == true)
ShowFPU(false);
else
ShowFPU(true);
ShowFPU(!mShowFpu);
}
void RegistersView::onCopyAllAction()