[Libreoffice-commits] core.git: Branch 'feature/priorities' - sw/source

Tobias Madl tobias.madl.dev at gmail.com
Tue Nov 11 01:45:35 PST 2014


 sw/source/ui/dbui/mmoutputtypepage.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit d0f9a92fdabdef3f16a5df46dec34421e6943b7f
Author: Tobias Madl <tobias.madl.dev at gmail.com>
Date:   Tue Nov 11 09:44:53 2014 +0000

    changed timer to idle
    
    Change-Id: I58bcbf7f7f2d1f7237561d5abf8e73d46d0726de

diff --git a/sw/source/ui/dbui/mmoutputtypepage.cxx b/sw/source/ui/dbui/mmoutputtypepage.cxx
index 9c849c0..57abcde 100644
--- a/sw/source/ui/dbui/mmoutputtypepage.cxx
+++ b/sw/source/ui/dbui/mmoutputtypepage.cxx
@@ -86,13 +86,13 @@ struct SwSendMailDialog_Impl
     ::rtl::Reference< IMailDispatcherListener>  xMailListener;
     uno::Reference< mail::XMailService >        xConnectedMailService;
     uno::Reference< mail::XMailService >        xConnectedInMailService;
-    Timer                                       aRemoveTimer;
+    Idle                                        aRemoveIdle;
 
     SwSendMailDialog_Impl() :
         nCurrentDescriptor(0),
         nDocumentCount(0)
              {
-                aRemoveTimer.SetTimeout(500);
+                aRemoveIdle.SetPriority(VCL_IDLE_PRIORITY_LOWEST);
              }
 
     ~SwSendMailDialog_Impl()
@@ -513,9 +513,9 @@ void  SwSendMailDialog::StateChanged( StateChangedType nStateChange )
     ModelessDialog::StateChanged( nStateChange );
     if(StateChangedType::VISIBLE == nStateChange && !IsVisible())
     {
-        m_pImpl->aRemoveTimer.SetTimeoutHdl( STATIC_LINK( this, SwSendMailDialog,
+        m_pImpl->aRemoveIdle.SetIdleHdl( STATIC_LINK( this, SwSendMailDialog,
                                                     RemoveThis ) );
-        m_pImpl->aRemoveTimer.Start();
+        m_pImpl->aRemoveIdle.Start();
     }
 }
 


More information about the Libreoffice-commits mailing list