Commit dda43b9c authored by Miklós Máté's avatar Miklós Máté

don't write into activity history if history is disabled

It defeats the purpose of that setting.
Signed-off-by: Miklós Máté's avatarMiklós Máté <mtmkls@gmail.com>
parent e5f85e16
......@@ -716,8 +716,10 @@ void ViewMainPage::openUrls(const QList<QUrl>& allUrls, const QUrl &currentUrl)
DocumentView::Setup savedSetup = d->mDocumentViewContainer->savedSetup(url);
view->openUrl(url, d->mZoomMode == ZoomMode::Individual && savedSetup.valid ? savedSetup : setup);
#ifdef KF5Activities_FOUND
d->mActivityResources.value(view)->setUri(url);
d->mActivityResources.value(view)->setMimetype(MimeTypeUtils::urlMimeType(url));
if (GwenviewConfig::historyEnabled()) {
d->mActivityResources.value(view)->setUri(url);
d->mActivityResources.value(view)->setMimetype(MimeTypeUtils::urlMimeType(url));
}
#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