tdf#82160 Reset mouse pointer if doc loading failed

Change-Id: Ib05226345c4b83d9190839de5cc04068ce1879d8
This commit is contained in:
Maxim Monastirsky
2016-05-04 01:07:23 +03:00
parent cc67943959
commit a4eba3762a
3 changed files with 5 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ struct LoadRecentFile
css::util::URL aTargetURL;
css::uno::Sequence< css::beans::PropertyValue > aArgSeq;
css::uno::Reference< css::frame::XDispatch > xDispatch;
VclPtr< ThumbnailView > pView;
};
enum ApplicationType

View File

@@ -327,6 +327,9 @@ IMPL_STATIC_LINK_TYPED( RecentDocsView, ExecuteHdl_Impl, void*, p, void )
{
}
if ( !pLoadRecentFile->pView->IsDisposed() )
pLoadRecentFile->pView->SetPointer( PointerStyle::Arrow );
delete pLoadRecentFile;
}

View File

@@ -221,6 +221,7 @@ void RecentDocsViewItem::OpenDocument()
pLoadRecentFile->xDispatch = xDispatch;
pLoadRecentFile->aTargetURL = aTargetURL;
pLoadRecentFile->aArgSeq = aArgsList;
pLoadRecentFile->pView.set(&mrParent);
Application::PostUserEvent(LINK(nullptr, RecentDocsView, ExecuteHdl_Impl), pLoadRecentFile, true);
}