[core] Removed description checking for opening mode choosing in bookmark

This commit is contained in:
Александр Зацепин 2019-09-23 18:11:47 +03:00 committed by Aleksey Belousov
parent 0bf0e05774
commit 39028392c3

View file

@ -843,9 +843,9 @@ void Framework::FillBookmarkInfo(Bookmark const & bmk, place_page::Info & info)
info.SetBookmarkData(bmk.GetData());
info.SetBookmarkId(bmk.GetId());
info.SetBookmarkCategoryId(bmk.GetGroupId());
auto openingMode = (m_routingManager.IsRoutingActive() || bmk.GetDescription().empty())
? place_page::OpeningMode::Preview
: place_page::OpeningMode::PreviewPlus;
auto openingMode = m_routingManager.IsRoutingActive()
? place_page::OpeningMode::Preview
: place_page::OpeningMode::PreviewPlus;
info.SetOpeningMode(openingMode);
FillPointInfoForBookmark(bmk, info);
}