diff --git a/src/frontends/qt4/GuiWorkArea.C b/src/frontends/qt4/GuiWorkArea.C index 261aaef8f8..73a2d0d405 100644 --- a/src/frontends/qt4/GuiWorkArea.C +++ b/src/frontends/qt4/GuiWorkArea.C @@ -189,6 +189,9 @@ GuiWorkArea::GuiWorkArea(int w, int h, int id, LyXView & lyx_view) QObject::connect(verticalScrollBar(), SIGNAL(actionTriggered(int)), this, SLOT(adjustViewWithScrollBar(int))); + // disable context menu for the scrollbar + verticalScrollBar()->setContextMenuPolicy(Qt::NoContextMenu); + // PageStep only depends on the viewport height. verticalScrollBar()->setPageStep(viewport()->height());