Commit b464d031 authored by Jekyll Wu's avatar Jekyll Wu
Browse files

Do not show context menu when right click in midnight commander

BUG: 302427
FIXED-IN: 4.9.0
parent 164e2253
......@@ -2795,12 +2795,15 @@ bool TerminalDisplay::event(QEvent* event)
return eventHandled ? true : QWidget::event(event);
}
void TerminalDisplay::contextMenuEvent(QContextMenuEvent*)
void TerminalDisplay::contextMenuEvent(QContextMenuEvent* event)
{
// FIXME: On Mac OSX opening some dialogs cause the context menu to
// get displayed. Example: Scrollback dialog via context menu.
#if !defined(Q_OS_MAC)
emit configureRequest(mapFromGlobal(QCursor::pos()));
// the logic for the mouse case is within MousePressEvent()
if (event->reason() != QContextMenuEvent::Mouse) {
emit configureRequest(mapFromGlobal(QCursor::pos()));
}
#endif
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment