summaryrefslogtreecommitdiff
path: root/sfx2/source/control
diff options
context:
space:
mode:
authorVert D <devoptmsoi@gmx.com>2020-11-05 21:01:56 -0500
committerHeiko Tietze <heiko.tietze@documentfoundation.org>2020-11-16 09:17:41 +0100
commit76836910aedee94c1361ddd912544822316b9e0c (patch)
treedc8dd57a544cf7efdcc04309f18689a2b917423c /sfx2/source/control
parentd379b8ac4234d23e82d19b801c807987ab105968 (diff)
tdf#138024 Default Icons not refreshing in template manger search view
*added missing funtion to searchview *call searchupdate when refreshing Change-Id: I576b2e2de37e3f34b7499a914f0707586687643e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105387 Tested-by: Jenkins Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org> Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'sfx2/source/control')
-rw-r--r--sfx2/source/control/templatesearchview.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/sfx2/source/control/templatesearchview.cxx b/sfx2/source/control/templatesearchview.cxx
index 25e62fd27384..41c318ecf75e 100644
--- a/sfx2/source/control/templatesearchview.cxx
+++ b/sfx2/source/control/templatesearchview.cxx
@@ -240,6 +240,19 @@ BitmapEx TemplateSearchView::getDefaultThumbnail( const OUString& rPath )
return aImg;
}
+void TemplateSearchView::RemoveDefaultTemplateIcon(const OUString& rPath)
+{
+ for (const std::unique_ptr<ThumbnailViewItem>& pItem : mItemList)
+ {
+ TemplateViewItem* pViewItem = dynamic_cast<TemplateViewItem*>(pItem.get());
+ if (pViewItem && pViewItem->getPath().match(rPath))
+ {
+ pViewItem->showDefaultIcon(false);
+ Invalidate();
+ return;
+ }
+ }
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */