From b1d8854ad2fbd059dd31783cd82730e6b2c62566 Mon Sep 17 00:00:00 2001 From: Simon Paul St James Date: Sun, 1 Feb 2009 22:03:04 +0000 Subject: [PATCH] Hovering over blank space in a view while dragging would trigger the FolderExpander on the folder represented by the view, which we don't want. Detect and prevent it. BUG:182618 Shipped! ;) svn path=/trunk/KDE/kdebase/apps/; revision=919950 --- src/folderexpander.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/folderexpander.cpp b/src/folderexpander.cpp index 1aaf09ded..7fe775944 100644 --- a/src/folderexpander.cpp +++ b/src/folderexpander.cpp @@ -112,7 +112,9 @@ void FolderExpander::autoExpandTimeout() Q_ASSERT(m_dirModel != 0); KFileItem itemToExpand = m_dirModel->itemForIndex(indexToExpand); - if (itemToExpand.isNull()) { + if (itemToExpand.isNull() || itemToExpand == m_dirModel->itemForIndex(QModelIndex())) { + // The second clause occurs when we are expanding the folder represented + // by the view, which is a case we should ignore (#182618). return; } -- 2.47.3