From: Peter Penz Date: Sun, 30 Aug 2009 17:36:29 +0000 (+0000) Subject: fix the context menu of the column view X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/0edb1d9f739de701bc216a6c330ec15fb94fcf21 fix the context menu of the column view svn path=/trunk/KDE/kdebase/apps/; revision=1017450 --- diff --git a/src/dolphincolumnview.cpp b/src/dolphincolumnview.cpp index b431c2729..ef0dc05ef 100644 --- a/src/dolphincolumnview.cpp +++ b/src/dolphincolumnview.cpp @@ -335,15 +335,7 @@ void DolphinColumnView::contextMenuEvent(QContextMenuEvent* event) Q_ASSERT(m_active); QListView::contextMenuEvent(event); - - const QModelIndex index = indexAt(event->pos()); - if (!index.isValid()) { - clearSelection(); - } - - const QPoint pos = m_container->viewport()->mapFromGlobal(event->globalPos()); - Q_ASSERT(m_container->m_controller->itemView() == this); - m_container->m_controller->triggerContextMenuRequest(pos); + m_container->m_controller->triggerContextMenuRequest(event->pos()); } void DolphinColumnView::wheelEvent(QWheelEvent* event)