diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-03-07 10:24:10 +0100 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-03-07 10:24:26 +0100 |
commit | 3952988da628d87e884168d23a352e4b151bf5ea (patch) | |
tree | 3820fddb223c527f6831fbde468f2494caacc64c | |
parent | 6235a7261b7a763cbce4e3b2ffd93921008acb02 (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
-rw-r--r-- | include/sfx2/recentdocsview.hxx | 2 | ||||
-rw-r--r-- | sfx2/source/control/recentdocsview.cxx | 7 | ||||
-rw-r--r-- | sfx2/source/control/thumbnailview.cxx | 2 |
3 files changed, 9 insertions, 2 deletions
diff --git a/include/sfx2/recentdocsview.hxx b/include/sfx2/recentdocsview.hxx index 20f04c3f9be7..9d0335d47e15 100644 --- a/include/sfx2/recentdocsview.hxx +++ b/include/sfx2/recentdocsview.hxx @@ -65,6 +65,8 @@ protected: void OpenItem( const ThumbnailViewItem *pItem ); virtual void Paint( const Rectangle& rRect ); + virtual void LoseFocus(); + bool isAcceptedFile(const OUString &rURL) const; long mnItemMaxSize; 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. |