Kaydet (Commit) 487a6b49 authored tarafından Akshay Deep's avatar Akshay Deep Kaydeden (comit) Samuel Mehrbrodt

tdf#79889 Make Recent Docs thumbnail titles consistent with recent files menu

Change-Id: I839039e68c766480458a5956cf1261819c0ea005
Reviewed-on: https://gerrit.libreoffice.org/26465Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
üst 50a0473e
......@@ -180,8 +180,6 @@ void RecentDocsView::Reload()
if (rRecentEntry[j].Name == "URL")
a >>= aURL;
else if (rRecentEntry[j].Name == "Title")
a >>= aTitle;
//fdo#74834: only load thumbnail if the corresponding option is not disabled in the configuration
else if (rRecentEntry[j].Name == "Thumbnail" && officecfg::Office::Common::History::RecentDocsThumbnail::get())
{
......@@ -199,6 +197,13 @@ void RecentDocsView::Reload()
}
}
if(!aURL.isEmpty())
{
INetURLObject aURLObj( aURL );
//Remove extension from url's last segment and use it as title
aTitle = aURLObj.GetBase(); //DECODE_WITH_CHARSET
}
if (isAcceptedFile(aURL))
{
insertItem(aURL, aTitle, aThumbnail, i+1);
......
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