summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-05-25 19:59:49 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-05-26 14:06:40 +0100
commitf0bbafba9d490c2628f1f60070aee877b64f5520 (patch)
treeac569030df1061f8e603cf6aac3738b3c6f91d67 /reportdesign
parent9aebad8b58a7ee36284e465a40101d2a045d00dd (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')
-rw-r--r--reportdesign/source/ui/dlg/GroupsSorting.cxx6
-rw-r--r--reportdesign/source/ui/report/propbrw.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/reportdesign/source/ui/dlg/GroupsSorting.cxx b/reportdesign/source/ui/dlg/GroupsSorting.cxx
index ff786a5fce33..80cf6a6c3e34 100644
--- a/reportdesign/source/ui/dlg/GroupsSorting.cxx
+++ b/reportdesign/source/ui/dlg/GroupsSorting.cxx
@@ -760,7 +760,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;
@@ -867,7 +867,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 );
}
}
@@ -1178,7 +1178,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