diff options
author | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-11-06 13:59:53 +0000 |
---|---|---|
committer | Tobias Madl <tobias.madl.dev@gmail.com> | 2014-12-09 12:34:51 +0000 |
commit | 545fafea1a21902b16b80c3aa2545f6e4b6f3565 (patch) | |
tree | 5d246d40ffe7debb3a8bacc52d6a75123b0e4363 /sw/source/core/doc | |
parent | 7523b588f16e14f87c8146118a1f050f680795fa (diff) |
changed some timer to idle
Change-Id: Ibd3a4f66cec6fde4fadc064f27ac44901d005b15
Diffstat (limited to 'sw/source/core/doc')
-rw-r--r-- | sw/source/core/doc/docnew.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/doc/docnew.cxx b/sw/source/core/doc/docnew.cxx index ced0f2b122f2..97ddb7463c54 100644 --- a/sw/source/core/doc/docnew.cxx +++ b/sw/source/core/doc/docnew.cxx @@ -340,8 +340,8 @@ SwDoc::SwDoc() new SwTxtNode( SwNodeIndex( GetNodes().GetEndOfContent() ), getIDocumentStylePoolAccess().GetTxtCollFromPool( RES_POOLCOLL_STANDARD )); - maOLEModifiedTimer.SetTimeout( 1000 ); - maOLEModifiedTimer.SetTimeoutHdl( LINK( this, SwDoc, DoUpdateModifiedOLE )); + maOLEModifiedIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST ); + maOLEModifiedIdle.SetIdleHdl( LINK( this, SwDoc, DoUpdateModifiedOLE )); #if HAVE_FEATURE_DBCONNECTIVITY // Create DBManager @@ -785,7 +785,7 @@ void SwDoc::SetPreviewPrtData( const SwPagePreviewPrtData* pNew ) void SwDoc::SetOLEObjModified() { - if( getIDocumentLayoutAccess().GetCurrentViewShell() ) maOLEModifiedTimer.Start(); + if( getIDocumentLayoutAccess().GetCurrentViewShell() ) maOLEModifiedIdle.Start(); } /** SwDoc: Reading and writing of the layout cache. */ |