diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-05-08 22:13:08 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-05-08 22:40:29 +0100 |
commit | 8372b3c3d1c3e8a787e174cc31dca55627b74b15 (patch) | |
tree | 3e6265cd096c98490b52e4b9d733388ca7a232ab /cui | |
parent | e953cb1a3c2c240a385608658ffc481e33c6854b (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 'cui')
-rw-r--r-- | cui/source/customize/cfg.cxx | 2 | ||||
-rw-r--r-- | cui/source/dialogs/SpellDialog.cxx | 4 | ||||
-rw-r--r-- | cui/source/dialogs/cuigaldlg.cxx | 4 | ||||
-rw-r--r-- | cui/source/dialogs/thesdlg.cxx | 2 | ||||
-rw-r--r-- | cui/source/options/optlingu.cxx | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index 89d5b4c1a78c..f902a15c10f0 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -2001,7 +2001,7 @@ SvTreeListEntry* SvxConfigPage::AddFunction( { // asynchronous error message, because of MsgBoxes PostUserEvent( - LINK( this, SvxConfigPage, AsyncInfoMsg ) ); + LINK( this, SvxConfigPage, AsyncInfoMsg ), NULL, true ); delete pNewEntryData; return NULL; } diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index c1238be481e1..10bc499e5d6b 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -238,8 +238,8 @@ SpellDialog::SpellDialog(SpellDialogChildWindow* pChildWindow, //InitHdl wants to use virtual methods, so it //can't be called during the ctor, so init //it on next event cycle post-ctor - Application::PostUserEvent( LINK( - this, SpellDialog, InitHdl ) ); + Application::PostUserEvent( + LINK( this, SpellDialog, InitHdl ), NULL, true ); } diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx index 7f4abcbddefc..4eafd4904a23 100644 --- a/cui/source/dialogs/cuigaldlg.cxx +++ b/cui/source/dialogs/cuigaldlg.cxx @@ -110,7 +110,7 @@ void SearchThread::execute() ImplSearch( maStartURL, aFormats, mpBrowser->bSearchRecursive ); } - Application::PostUserEvent( LINK( mpProgress, SearchProgress, CleanUpHdl ) ); + Application::PostUserEvent( LINK( mpProgress, SearchProgress, CleanUpHdl ), NULL, true ); } @@ -343,7 +343,7 @@ void TakeThread::execute() delete pStatusProgress; } - Application::PostUserEvent( LINK( mpProgress, TakeProgress, CleanUpHdl ) ); + Application::PostUserEvent( LINK( mpProgress, TakeProgress, CleanUpHdl ), NULL, true ); } // - TakeProgress - diff --git a/cui/source/dialogs/thesdlg.cxx b/cui/source/dialogs/thesdlg.cxx index a71456e33b75..26808a12bc43 100644 --- a/cui/source/dialogs/thesdlg.cxx +++ b/cui/source/dialogs/thesdlg.cxx @@ -442,7 +442,7 @@ IMPL_LINK( SvxThesaurusDialog, AlternativesDoubleClickHdl_Impl, SvxCheckListBox //! workaround to set the selection since calling SelectEntryPos within //! the double click handler does not work - Application::PostUserEvent( LINK( this, SvxThesaurusDialog, SelectFirstHdl_Impl ), pBox ); + Application::PostUserEvent( LINK( this, SvxThesaurusDialog, SelectFirstHdl_Impl ), pBox, true ); return 0; } diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx index 1f780e4c7f3a..12ef87645a1b 100644 --- a/cui/source/options/optlingu.cxx +++ b/cui/source/options/optlingu.cxx @@ -1530,7 +1530,7 @@ IMPL_LINK( SvxLinguTabPage, BoxDoubleClickHdl_Impl, SvTreeListBox *, pBox ) //! on a module entry and exiting the "Edit Modules" dialog //! after that. Application::PostUserEvent( LINK( - this, SvxLinguTabPage, PostDblClickHdl_Impl ) ); + this, SvxLinguTabPage, PostDblClickHdl_Impl ), NULL, true); } else if (pBox == m_pLinguOptionsCLB) { |