diff options
-rw-r--r-- | sfx2/source/control/recentdocsview.cxx | 9 |
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); |