summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay Deep <akshaydeepiitr@gmail.com>2016-06-19 11:13:04 +0530
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2016-06-20 10:17:52 +0000
commit487a6b491f8a514541eccf3aef20277493c66744 (patch)
tree2fef28b2bfbb157209d484dabb15008bce597230
parent50a0473e821081c1db2646dd4c3fcc24f5c11bf3 (diff)
tdf#79889 Make Recent Docs thumbnail titles consistent with recent files menu
Change-Id: I839039e68c766480458a5956cf1261819c0ea005 Reviewed-on: https://gerrit.libreoffice.org/26465 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
-rw-r--r--sfx2/source/control/recentdocsview.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx
index abfc888f8a48..d30380156801 100644
--- a/sfx2/source/control/recentdocsview.cxx
+++ b/sfx2/source/control/recentdocsview.cxx
@@ -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);