summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-08-29 07:38:49 (GMT)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-08-29 07:38:49 (GMT)
commite7d7069f12fa3b22cbdd88ad81ce538659c75a9f (patch)
tree7fa6bde5ab9f5e22f59bbf320d9d65e705600d02
parentce4ab922496cb9e133f96db78c5b67bc01429512 (diff)
Don't show URL hints if no URL hint modifiers are set.
BUG: 367945
-rw-r--r--src/TerminalDisplay.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/TerminalDisplay.cpp b/src/TerminalDisplay.cpp
index abeeda1..3c4364c2d 100644
--- a/src/TerminalDisplay.cpp
+++ b/src/TerminalDisplay.cpp
@@ -3115,7 +3115,7 @@ void TerminalDisplay::scrollScreenWindow(enum ScreenWindow::RelativeScrollMode m
void TerminalDisplay::keyPressEvent(QKeyEvent* event)
{
- if (event->modifiers() == _urlHintsModifiers) {
+ if (_urlHintsModifiers && event->modifiers() == _urlHintsModifiers) {
int hintSelected = event->key() - 0x31;
if (hintSelected >= 0 && hintSelected < 10 && hintSelected < _filterChain->hotSpots().count()) {
_filterChain->hotSpots().at(hintSelected)->activate();