summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2018-08-24 08:05:26 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2018-08-24 10:18:29 +0200
commitce68889678bca3b51c258452f7bfdd21982e4a0d (patch)
tree8682e3cd208e0142c9e237a1d0f59622c910d51b
parent2bc3bda3a9d0abc7435e5dc9004c74304330a121 (diff)
tdf#119458 always start the SwDocIdle
The SwDocIdle prevents its own scheduling, while its document is busy. In theory something should kick the Idle, when the document isn't busy anymore, but SwViewOption doesn't have access to the doc easily. So this returns to the old state, where each StartIdling kicks the SwDocIdle, as long as it is not blocked. This is the way it has been working - out of luck - since ever. Eventually all the "other" Writer idle handling should be dropped in favour of the IDocumentTimerAccess interface, or otherwise be consolidated. Change-Id: I9e1cf5c309f614da579458981332ed1ee32c7c3f Reviewed-on: https://gerrit.libreoffice.org/59536 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
-rw-r--r--sw/source/core/doc/DocumentTimerManager.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/DocumentTimerManager.cxx b/sw/source/core/doc/DocumentTimerManager.cxx
index 35f2eb94dcbd..205e5992e59c 100644
--- a/sw/source/core/doc/DocumentTimerManager.cxx
+++ b/sw/source/core/doc/DocumentTimerManager.cxx
@@ -49,7 +49,7 @@ DocumentTimerManager::DocumentTimerManager( SwDoc& i_rSwdoc ) : m_rDoc( i_rSwdoc
void DocumentTimerManager::StartIdling()
{
- if( !mIdleBlockCount && !maDocIdle.IsActive() )
+ if( !mIdleBlockCount )
{
mbStartIdleTimer = false;
maDocIdle.Start();