summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-05-08 22:13:08 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-05-08 22:40:29 +0100
commit8372b3c3d1c3e8a787e174cc31dca55627b74b15 (patch)
tree3e6265cd096c98490b52e4b9d733388ca7a232ab /dbaccess
parente953cb1a3c2c240a385608658ffc481e33c6854b (diff)
PostUserEvent - first cut at keeping a VclPtr for posted UserEvents.
This should eventually enable more certainty that they are still live by the time we emit the event later. Change-Id: I7c9eb4c000753d4efe8c59a9e13ef3e11c93b2fa
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ext/macromigration/macromigrationdialog.cxx2
-rw-r--r--dbaccess/source/ui/app/AppDetailPageHelper.cxx2
-rw-r--r--dbaccess/source/ui/app/AppSwapWindow.cxx2
-rw-r--r--dbaccess/source/ui/browser/sbagrid.cxx2
4 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/ext/macromigration/macromigrationdialog.cxx b/dbaccess/source/ext/macromigration/macromigrationdialog.cxx
index 24c1a7c6432c..011a1c66d4eb 100644
--- a/dbaccess/source/ext/macromigration/macromigrationdialog.cxx
+++ b/dbaccess/source/ext/macromigration/macromigrationdialog.cxx
@@ -214,7 +214,7 @@ namespace dbmm
enableButtons( WizardButtonFlags::FINISH | WizardButtonFlags::CANCEL | WizardButtonFlags::PREVIOUS | WizardButtonFlags::NEXT, false );
// start the migration asynchronously
- PostUserEvent( LINK( this, MacroMigrationDialog, OnStartMigration ) );
+ PostUserEvent( LINK( this, MacroMigrationDialog, OnStartMigration ), NULL, true );
}
break;
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
index 4b72d59c3ed7..0928d17ba755 100644
--- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx
+++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
@@ -143,7 +143,7 @@ namespace
{
bool nRet = Window::Notify( rNEvt );
if ( rNEvt.GetType() == MouseNotifyEvent::INPUTENABLE && IsInputEnabled() )
- PostUserEvent( LINK( this, OTablePreviewWindow, OnDisableInput) );
+ PostUserEvent( LINK( this, OTablePreviewWindow, OnDisableInput), NULL, true );
return nRet;
}
IMPL_LINK_NOARG(OTablePreviewWindow, OnDisableInput)
diff --git a/dbaccess/source/ui/app/AppSwapWindow.cxx b/dbaccess/source/ui/app/AppSwapWindow.cxx
index 1f215dfd22b5..37df4725692a 100644
--- a/dbaccess/source/ui/app/AppSwapWindow.cxx
+++ b/dbaccess/source/ui/app/AppSwapWindow.cxx
@@ -154,7 +154,7 @@ bool OApplicationSwapWindow::onContainerSelected( ElementType _eType )
return true;
}
- PostUserEvent( LINK( this, OApplicationSwapWindow, ChangeToLastSelected ) );
+ PostUserEvent( LINK( this, OApplicationSwapWindow, ChangeToLastSelected ), NULL, true );
return false;
}
diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx
index c2dab4100388..3aef2d47f5af 100644
--- a/dbaccess/source/ui/browser/sbagrid.cxx
+++ b/dbaccess/source/ui/browser/sbagrid.cxx
@@ -1424,7 +1424,7 @@ sal_Int8 SbaGridControl::ExecuteDrop( const BrowserExecuteDropEvent& rEvt )
m_aDataDescriptor = ODataAccessObjectTransferable::extractObjectDescriptor(aDropped);
if (m_nAsyncDropEvent)
Application::RemoveUserEvent(m_nAsyncDropEvent);
- m_nAsyncDropEvent = Application::PostUserEvent(LINK(this, SbaGridControl, AsynchDropEvent));
+ m_nAsyncDropEvent = Application::PostUserEvent(LINK(this, SbaGridControl, AsynchDropEvent), NULL, true);
return DND_ACTION_COPY;
}
}