tdf#82160 Reset mouse pointer if doc loading failed
Change-Id: Ib05226345c4b83d9190839de5cc04068ce1879d8
This commit is contained in:
@@ -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
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user