Restore cursor after making empty selection. (#1714)

This commit is contained in:
karliss 2019-08-19 08:23:42 +03:00 committed by Itay Cohen
parent f50fecc57b
commit cd2dbc4a29

View File

@ -442,8 +442,10 @@ void HexWidget::mousePressEvent(QMouseEvent *event)
void HexWidget::mouseReleaseEvent(QMouseEvent *event) void HexWidget::mouseReleaseEvent(QMouseEvent *event)
{ {
if (event->button() == Qt::LeftButton) { if (event->button() == Qt::LeftButton) {
if (selection.isEmpty()) if (selection.isEmpty()) {
selection.init(cursor.address); selection.init(cursor.address);
cursorEnabled = true;
}
updatingSelection = false; updatingSelection = false;
} }
} }