From cd2dbc4a29e174e76bcba4c23fe0176f43a03d09 Mon Sep 17 00:00:00 2001 From: karliss Date: Mon, 19 Aug 2019 08:23:42 +0300 Subject: [PATCH] Restore cursor after making empty selection. (#1714) --- src/widgets/HexWidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/widgets/HexWidget.cpp b/src/widgets/HexWidget.cpp index 45018f9d..dbbf5a7e 100644 --- a/src/widgets/HexWidget.cpp +++ b/src/widgets/HexWidget.cpp @@ -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; } }