Kaydet (Commit) 3952988d authored tarafından Zolnai Tamás's avatar Zolnai Tamás

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
üst 6235a726
......@@ -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;
......
......@@ -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;
......
......@@ -910,8 +910,6 @@ void ThumbnailView::GetFocus()
void ThumbnailView::LoseFocus()
{
deselectItems();
Control::LoseFocus();
// Tell the accessible object that we lost the focus.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment