From 7e04a679ae372eb73bae67c46825d82daa437e89 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?=
 <aurelien.gateau@canonical.com>
Date: Thu, 26 Jan 2012 14:10:28 +0100
Subject: [PATCH] Fix wrong cursor in vcs log editor

When cursor leaves a change, reset its shape and remove underline on the
change.

Change-Id: Idedafefc57338a32fdaa773fc4a41c0f0527a5b8
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
---
 src/plugins/vcsbase/vcsbaseeditor.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/plugins/vcsbase/vcsbaseeditor.cpp b/src/plugins/vcsbase/vcsbaseeditor.cpp
index 07d9df8a9e4..d9244961f97 100644
--- a/src/plugins/vcsbase/vcsbaseeditor.cpp
+++ b/src/plugins/vcsbase/vcsbaseeditor.cpp
@@ -952,11 +952,11 @@ void VcsBaseEditorWidget::mouseMoveEvent(QMouseEvent *e)
             handler->highlightCurrentContents();
             overrideCursor = true;
             cursorShape = Qt::PointingHandCursor;
+        } else {
+            setExtraSelections(OtherSelection, QList<QTextEdit::ExtraSelection>());
+            overrideCursor = true;
+            cursorShape = Qt::IBeamCursor;
         }
-    } else {
-        setExtraSelections(OtherSelection, QList<QTextEdit::ExtraSelection>());
-        overrideCursor = true;
-        cursorShape = Qt::IBeamCursor;
     }
     TextEditor::BaseTextEditorWidget::mouseMoveEvent(e);
 
-- 
GitLab