diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-05-25 19:59:49 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-05-25 21:38:08 +0100 |
commit | e4097762dd48eb2bc3a3e0dc83a3b81766b1c65a (patch) | |
tree | ca3caabea0f1f0f955c344a4af4afb7fc5b8f10f /sfx2 | |
parent | 039eb8c314fe24e7855980dcefd90e164c3b51eb (diff) |
Audit all PostUserEvent calls and instrument for VclPtr.
Hold a reference on the VclPtr while we're waiting for the UserEvent.
Change-Id: I55c2671ca12eb14761c6a7dffd551af71547ecbd
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/recentdocsviewitem.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/control/recentdocsviewitem.cxx b/sfx2/source/control/recentdocsviewitem.cxx index 0165b8b82ba2..0b202ca8c815 100644 --- a/sfx2/source/control/recentdocsviewitem.cxx +++ b/sfx2/source/control/recentdocsviewitem.cxx @@ -219,7 +219,7 @@ void RecentDocsViewItem::OpenDocument() pLoadRecentFile->aTargetURL = aTargetURL; pLoadRecentFile->aArgSeq = aArgsList; - Application::PostUserEvent(LINK(0, RecentDocsView, ExecuteHdl_Impl), pLoadRecentFile); + Application::PostUserEvent(LINK(0, RecentDocsView, ExecuteHdl_Impl), pLoadRecentFile, true); } } diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index 43a186a620ce..833a8afedae7 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -269,7 +269,7 @@ sal_Int8 DropListBox_Impl::ExecuteDrop( const ExecuteDropEvent& rEvt ) { if ( aDesc.maClassName == pDocShell->GetFactory().GetClassId() ) { - PostUserEvent( LINK( this, DropListBox_Impl, OnAsyncExecuteDrop ), 0 ); + PostUserEvent( LINK( this, DropListBox_Impl, OnAsyncExecuteDrop ), 0, true ); bFormatFound = true; nRet = rEvt.mnAction; |