Fix crash when not in viewer mode

BUGS: 417118
This commit is contained in:
Albert Astals Cid 2020-02-10 00:42:00 +01:00
parent a96c082d69
commit cb3426d024

View file

@ -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;