Commit e7880145 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix crash when zoomActionMenu is not created (as when we don't have actionCollection)

parent c38b1479
......@@ -1166,8 +1166,9 @@ void ViewerPrivate::writeConfig(bool sync)
if (attachmentStrategy()) {
MessageViewer::MessageViewerSettings::self()->setAttachmentStrategy(QLatin1String(attachmentStrategy()->name()));
}
MessageViewer::MessageViewerSettings::self()->setZoomTextOnly(mZoomActionMenu->zoomTextOnly());
if (mZoomActionMenu) {
MessageViewer::MessageViewerSettings::self()->setZoomTextOnly(mZoomActionMenu->zoomTextOnly());
}
saveSplitterSizes();
if (sync) {
Q_EMIT requestConfigSync();
......
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