Skip to content

Commit

Permalink
Fix decompiler widget crash when starting unsynced
Browse files Browse the repository at this point in the history
  • Loading branch information
karliss committed Nov 4, 2023
1 parent 13953d2 commit 900b1a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/widgets/DecompilerWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,10 @@ void DecompilerWidget::decompilationFinished(RzAnnotatedCode *codeDecompiled)
}
}

ui->textEdit->horizontalScrollBar()->setSliderPosition(scrollHistory[historyPos].first);
ui->textEdit->verticalScrollBar()->setSliderPosition(scrollHistory[historyPos].second);
if (!scrollHistory.empty()) {
ui->textEdit->horizontalScrollBar()->setSliderPosition(scrollHistory[historyPos].first);
ui->textEdit->verticalScrollBar()->setSliderPosition(scrollHistory[historyPos].second);
}
}

void DecompilerWidget::setAnnotationsAtCursor(size_t pos)
Expand Down

0 comments on commit 900b1a3

Please sign in to comment.