diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-06-27 21:02:19 +0000 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-06-28 16:07:41 +0200 |
commit | 7ef1ec18089aa45e8053c0c73ad71aa3f78b9758 (patch) | |
tree | 8aad0dfe8559132d7c9d55d3b60b218e8ac6bdec /vcl | |
parent | 1c1aadc804f4b34b764002c23dc916530d1c7908 (diff) |
No need to Stop() a Timer before Start()
Start() resets a timer per default, otherwise check IsActive().
Also add a debug name to it.
Change-Id: I1588161bb3fead42c3b26282dfa05d149aa94c52
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118020
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/generic/fontmanager/fontconfig.cxx | 3 | ||||
-rw-r--r-- | vcl/unx/generic/fontmanager/fontmanager.cxx | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/vcl/unx/generic/fontmanager/fontconfig.cxx b/vcl/unx/generic/fontmanager/fontconfig.cxx index 8194aef619d2..18a0408d34ae 100644 --- a/vcl/unx/generic/fontmanager/fontconfig.cxx +++ b/vcl/unx/generic/fontmanager/fontconfig.cxx @@ -1150,10 +1150,7 @@ void PrintFontManager::Substitute(FontSelectPattern &rPattern, OUString& rMissin } } if (!m_aCurrentRequests.empty()) - { - m_aFontInstallerTimer.Stop(); m_aFontInstallerTimer.Start(); - } } rMissingCodes = sStillMissing; } diff --git a/vcl/unx/generic/fontmanager/fontmanager.cxx b/vcl/unx/generic/fontmanager/fontmanager.cxx index 44471107bd33..67f5868c1c8e 100644 --- a/vcl/unx/generic/fontmanager/fontmanager.cxx +++ b/vcl/unx/generic/fontmanager/fontmanager.cxx @@ -119,6 +119,7 @@ PrintFontManager::PrintFontManager() { m_aFontInstallerTimer.SetInvokeHandler(LINK(this, PrintFontManager, autoInstallFontLangSupport)); m_aFontInstallerTimer.SetTimeout(5000); + m_aFontInstallerTimer.SetDebugName("PrintFontManager m_aFontInstallerTimer"); } PrintFontManager::~PrintFontManager() |