diff options
-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. |