summaryrefslogtreecommitdiff
path: root/src/modlist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modlist.cpp')
-rw-r--r--src/modlist.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp
index 31eb8387..afc1b65f 100644
--- a/src/modlist.cpp
+++ b/src/modlist.cpp
@@ -1434,15 +1434,7 @@ bool ModList::toggleSelection(QAbstractItemView *itemView)
bool ModList::eventFilter(QObject *obj, QEvent *event)
{
- if (event->type() == QEvent::ContextMenu) {
- QContextMenuEvent *contextEvent = static_cast<QContextMenuEvent*>(event);
- QWidget *object = qobject_cast<QWidget*>(obj);
- if ((object != nullptr) && (contextEvent->reason() == QContextMenuEvent::Mouse)) {
- emit requestColumnSelect(object->mapToGlobal(contextEvent->pos()));
-
- return true;
- }
- } else if ((event->type() == QEvent::KeyPress) && (m_Profile != nullptr)) {
+ if ((event->type() == QEvent::KeyPress) && (m_Profile != nullptr)) {
QAbstractItemView *itemView = qobject_cast<QAbstractItemView*>(obj);
QKeyEvent *keyEvent = static_cast<QKeyEvent*>(event);