summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2014-03-07 10:24:10 +0100
committerZolnai Tamás <tamas.zolnai@collabora.com>2014-03-07 10:24:26 +0100
commit3952988da628d87e884168d23a352e4b151bf5ea (patch)
tree3820fddb223c527f6831fbde468f2494caacc64c /sfx2
parent6235a7261b7a763cbce4e3b2ffd93921008acb02 (diff)
Fix deselection problems of template view
deselectItems() were added to make recent docs view work, but it is unneccessary to affect template view too. Change-Id: I0c805774321939991e308e9c8c669604e81dbad5
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/recentdocsview.cxx7
-rw-r--r--sfx2/source/control/thumbnailview.cxx2
2 files changed, 7 insertions, 2 deletions
diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx
index a97c7e7abc9c..e68332383c81 100644
--- a/sfx2/source/control/recentdocsview.cxx
+++ b/sfx2/source/control/recentdocsview.cxx
@@ -321,6 +321,13 @@ void RecentDocsView::Paint( const Rectangle &aRect )
ThumbnailView::Paint(aRect);
}
+void RecentDocsView::LoseFocus()
+{
+ deselectItems();
+
+ ThumbnailView::LoseFocus();
+}
+
long RecentDocsView::GetThumbnailSize() const
{
return mnItemMaxSize;
diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx
index af0b0eeb862d..b3e59e476673 100644
--- a/sfx2/source/control/thumbnailview.cxx
+++ b/sfx2/source/control/thumbnailview.cxx
@@ -910,8 +910,6 @@ void ThumbnailView::GetFocus()
void ThumbnailView::LoseFocus()
{
- deselectItems();
-
Control::LoseFocus();
// Tell the accessible object that we lost the focus.