summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarc Deop <damnshock@gmail.com>2012-01-15 11:04:18 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-01-15 11:04:18 +0100
commitc1f9c3a8af513419190976d1a8d7b0abbe251a28 (patch)
tree5cad7967584333c15d2667d532ca1a7097df9dce /src
parentImplement (User) Session Restore (diff)
downloadrekonq-c1f9c3a8af513419190976d1a8d7b0abbe251a28.tar.xz
only make labels for viewable elements
REVIEW:103697 REVIEWED-BY: adjam
Diffstat (limited to 'src')
-rw-r--r--src/webview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index da7f802a..ac861fb0 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -1008,7 +1008,8 @@ void WebView::showAccessKeys()
const QRect geometry = element.geometry();
if (unusedKeys.isEmpty()
|| alreadyLabeled.contains(element)
- || geometry.size().isEmpty())
+ || geometry.size().isEmpty()
+ || !viewport.contains(geometry.topLeft()))
{
continue;
}