From cb3426d024971f6de424fbeed1b94869222eb10f Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Mon, 10 Feb 2020 00:42:00 +0100 Subject: [PATCH] Fix crash when not in viewer mode BUGS: 417118 --- ui/pageview.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/pageview.cpp b/ui/pageview.cpp index 20bc47c10..4779d7982 100644 --- a/ui/pageview.cpp +++ b/ui/pageview.cpp @@ -390,6 +390,7 @@ PageView::PageView( QWidget *parent, Okular::Document *document ) d->setting_viewCols = Okular::Settings::viewColumns(); d->rtl_Mode = Okular::Settings::rtlReadingDirection(); d->mouseModeActionGroup = nullptr; + d->aMouseModeMenu = nullptr; d->penDown = false; d->aMouseMagnifier = nullptr; d->aFitWindowToPage = nullptr;