summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <peter.penz19@gmail.com>2012-02-21 16:05:37 (GMT)
committerPeter Penz <peter.penz19@gmail.com>2012-02-21 16:06:38 (GMT)
commit72fe0317cac590dec78283bc71d2bb98fcd4ea32 (patch)
tree7acd5a308f384dd3fa9506b315c0a76330865c6d
parentabd23c29110560dd893e0dc2b542fd04e1845a0f (diff)
Don't show tooltips when dragging to another Dolphin window
BUG: 294533 FIXED-IN: 4.8.1
-rw-r--r--dolphin/src/views/dolphinview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dolphin/src/views/dolphinview.cpp b/dolphin/src/views/dolphinview.cpp
index 54787d2..750cbb9 100644
--- a/dolphin/src/views/dolphinview.cpp
+++ b/dolphin/src/views/dolphinview.cpp
@@ -808,7 +808,7 @@ void DolphinView::slotItemHovered(int index)
{
const KFileItem item = fileItemModel()->fileItem(index);
- if (GeneralSettings::showToolTips() && QApplication::mouseButtons() == Qt::NoButton) {
+ if (GeneralSettings::showToolTips() && hasFocus() && QApplication::mouseButtons() == Qt::NoButton) {
QRectF itemRect = m_container->controller()->view()->itemContextRect(index);
const QPoint pos = m_container->mapToGlobal(itemRect.topLeft().toPoint());
itemRect.moveTo(pos);