Skip to content

Commit

Permalink
Restore cursor after making empty selection. (radareorg#1714)
Browse files Browse the repository at this point in the history
  • Loading branch information
karliss authored and ITAYC0HEN committed Aug 19, 2019
1 parent f50fecc commit cd2dbc4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/widgets/HexWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,10 @@ void HexWidget::mousePressEvent(QMouseEvent *event)
void HexWidget::mouseReleaseEvent(QMouseEvent *event)
{
if (event->button() == Qt::LeftButton) {
if (selection.isEmpty())
if (selection.isEmpty()) {
selection.init(cursor.address);
cursorEnabled = true;
}
updatingSelection = false;
}
}
Expand Down

0 comments on commit cd2dbc4

Please sign in to comment.