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 /reportdesign/source | |
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 'reportdesign/source')
-rw-r--r-- | reportdesign/source/ui/dlg/GroupsSorting.cxx | 6 | ||||
-rw-r--r-- | reportdesign/source/ui/report/propbrw.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/reportdesign/source/ui/dlg/GroupsSorting.cxx b/reportdesign/source/ui/dlg/GroupsSorting.cxx index f272491c3b87..5eb045690386 100644 --- a/reportdesign/source/ui/dlg/GroupsSorting.cxx +++ b/reportdesign/source/ui/dlg/GroupsSorting.cxx @@ -748,7 +748,7 @@ void OFieldExpressionControl::Command(const CommandEvent& rEvt) case SID_DELETE: if( m_nDeleteEvent ) Application::RemoveUserEvent( m_nDeleteEvent ); - m_nDeleteEvent = Application::PostUserEvent( LINK(this, OFieldExpressionControl, DelayedDelete) ); + m_nDeleteEvent = Application::PostUserEvent( LINK(this, OFieldExpressionControl, DelayedDelete), NULL, true ); break; default: break; @@ -855,7 +855,7 @@ void OFieldExpressionControl::paste() { if( m_nPasteEvent ) Application::RemoveUserEvent( m_nPasteEvent ); - m_nPasteEvent = Application::PostUserEvent( LINK(this, OFieldExpressionControl, DelayedPaste) ); + m_nPasteEvent = Application::PostUserEvent( LINK(this, OFieldExpressionControl, DelayedPaste), NULL, true ); } } @@ -1166,7 +1166,7 @@ IMPL_LINK_NOARG_TYPED( OGroupsSortingDialog, OnFormatAction, ToolBox*, void ) } if ( nCommand == m_nDeleteId ) { - Application::PostUserEvent( LINK(m_pFieldExpression, OFieldExpressionControl, DelayedDelete) ); + Application::PostUserEvent( LINK(m_pFieldExpression, OFieldExpressionControl, DelayedDelete), NULL, true ); } else { diff --git a/reportdesign/source/ui/report/propbrw.cxx b/reportdesign/source/ui/report/propbrw.cxx index ba805f1163ee..6706c74cfe85 100644 --- a/reportdesign/source/ui/report/propbrw.cxx +++ b/reportdesign/source/ui/report/propbrw.cxx @@ -487,7 +487,7 @@ void PropBrw::Update( OSectionView* pNewView ) if ( m_bInitialStateChange ) { // if we're just newly created, we want to have the focus - PostUserEvent( LINK( this, PropBrw, OnAsyncGetFocus ) ); + PostUserEvent( LINK( this, PropBrw, OnAsyncGetFocus ), NULL, true ); m_bInitialStateChange = false; // and additionally, we want to show the page which was active during // our previous incarnation |