┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-06-18 20:01:25 +0000
committerPeter Penz <[email protected]>2008-06-18 20:01:25 +0000
commit84376acc848475e4aa03408fd9a5255c201e697d (patch)
treeeae7b18cda498c9126ce9e6158adee3d47bd3a7c
parent5b541d04e517e5f7235c38e1dd5136b3b0372ef6 (diff)
it's assured that when requesting a context menu that the column is marked as active
svn path=/trunk/KDE/kdebase/apps/; revision=821938
-rw-r--r--src/dolphincolumnwidget.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/dolphincolumnwidget.cpp b/src/dolphincolumnwidget.cpp
index 6d983f71f..3b94d42ac 100644
--- a/src/dolphincolumnwidget.cpp
+++ b/src/dolphincolumnwidget.cpp
@@ -386,6 +386,7 @@ void DolphinColumnWidget::contextMenuEvent(QContextMenuEvent* event)
Q_ASSERT(m_view->m_controller->itemView() == this);
m_view->m_controller->triggerUrlChangeRequest(m_url);
}
+ Q_ASSERT(m_active);
QListView::contextMenuEvent(event);
@@ -394,13 +395,9 @@ void DolphinColumnWidget::contextMenuEvent(QContextMenuEvent* event)
clearSelection();
}
- if (index.isValid() || m_active) {
- // Only open a context menu above an item or if the mouse is above
- // the active column.
- const QPoint pos = m_view->viewport()->mapFromGlobal(event->globalPos());
- Q_ASSERT(m_view->m_controller->itemView() == this);
- m_view->m_controller->triggerContextMenuRequest(pos);
- }
+ const QPoint pos = m_view->viewport()->mapFromGlobal(event->globalPos());
+ Q_ASSERT(m_view->m_controller->itemView() == this);
+ m_view->m_controller->triggerContextMenuRequest(pos);
}
void DolphinColumnWidget::wheelEvent(QWheelEvent* event)