Fix decompiler widget crash when starting unsynced

This commit is contained in:
Karliss 2023-11-03 20:46:44 +02:00 committed by karliss
parent 13953d213a
commit 900b1a3e14

View File

@ -347,8 +347,10 @@ void DecompilerWidget::decompilationFinished(RzAnnotatedCode *codeDecompiled)
}
}
if (!scrollHistory.empty()) {
ui->textEdit->horizontalScrollBar()->setSliderPosition(scrollHistory[historyPos].first);
ui->textEdit->verticalScrollBar()->setSliderPosition(scrollHistory[historyPos].second);
}
}
void DecompilerWidget::setAnnotationsAtCursor(size_t pos)