diff options
| author | Peter Penz <[email protected]> | 2007-11-18 14:22:36 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-11-18 14:22:36 +0000 |
| commit | 6abcaedfb08e0a9f4a11ca4f6a1f29ccc713d974 (patch) | |
| tree | 42c65705b454c9641301fb148179630e87d834e1 /src/dolphincolumnwidget.cpp | |
| parent | 36c5344dbd4a8d17184b972ea0d6dd32f78d7695 (diff) | |
Revert last fix, otherwise context menus on viewport don't work anymore. I'll try to find a clean patch later...
svn path=/trunk/KDE/kdebase/apps/; revision=738274
Diffstat (limited to 'src/dolphincolumnwidget.cpp')
| -rw-r--r-- | src/dolphincolumnwidget.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/dolphincolumnwidget.cpp b/src/dolphincolumnwidget.cpp index 7681b8838..2dc3bc153 100644 --- a/src/dolphincolumnwidget.cpp +++ b/src/dolphincolumnwidget.cpp @@ -309,14 +309,12 @@ void DolphinColumnWidget::contextMenuEvent(QContextMenuEvent* event) QListView::contextMenuEvent(event); - if (selectionModel()->hasSelection()) { - const QModelIndex index = indexAt(event->pos()); - 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()); - m_view->m_controller->triggerContextMenuRequest(pos); - } + const QModelIndex index = indexAt(event->pos()); + 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()); + m_view->m_controller->triggerContextMenuRequest(pos); } } |
