[Libreoffice-commits] core.git: Branch 'feature/priorities' - cui/source
Tobias Madl
tobias.madl.dev at gmail.com
Mon Nov 10 06:38:18 PST 2014
cui/source/dialogs/linkdlg.cxx | 4 ++--
cui/source/inc/linkdlg.hxx | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 39e1a64e14098cf04ce03c9d1c47af159c138d69
Author: Tobias Madl <tobias.madl.dev at gmail.com>
Date: Mon Nov 10 14:37:14 2014 +0000
changed timer to idle
Change-Id: I713976070359e1f5628e7b34f7fd8f6f26b2372e
diff --git a/cui/source/dialogs/linkdlg.cxx b/cui/source/dialogs/linkdlg.cxx
index a6909d6..5f515db 100644
--- a/cui/source/dialogs/linkdlg.cxx
+++ b/cui/source/dialogs/linkdlg.cxx
@@ -123,8 +123,8 @@ SvBaseLinksDlg::SvBaseLinksDlg( vcl::Window * pParent, LinkManager* pMgr, bool b
m_pTbLinks->Resize(); // OS: hack for correct selection
// UpdateTimer for DDE-/Grf-links, which are waited for
- aUpdateTimer.SetTimeoutHdl( LINK( this, SvBaseLinksDlg, UpdateWaitingHdl ) );
- aUpdateTimer.SetTimeout( 1000 );
+ aUpdateIdle.SetIdleHdl( LINK( this, SvBaseLinksDlg, UpdateWaitingHdl ) );
+ aUpdateIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST );
m_pPbOpenSource->Hide();
diff --git a/cui/source/inc/linkdlg.hxx b/cui/source/inc/linkdlg.hxx
index d5440bd..64e9b87 100644
--- a/cui/source/inc/linkdlg.hxx
+++ b/cui/source/inc/linkdlg.hxx
@@ -61,7 +61,7 @@ class SvBaseLinksDlg : public ModalDialog
OUString aStrWaitinglink;
sfx2::LinkManager* pLinkMgr;
bool bHtmlMode;
- Timer aUpdateTimer;
+ Idle aUpdateIdle;
DECL_LINK( LinksSelectHdl, SvTabListBox * );
DECL_LINK( LinksDoubleClickHdl, SvTabListBox * );
@@ -78,7 +78,7 @@ class SvBaseLinksDlg : public ModalDialog
void SetType( sfx2::SvBaseLink& rLink, sal_uLong nPos, sal_uInt16 nType );
void InsertEntry( const sfx2::SvBaseLink& rLink, sal_uLong nPos = TREELIST_APPEND, bool bSelect = false);
- void StartUpdateTimer() { aUpdateTimer.Start(); }
+ void StartUpdateTimer() { aUpdateIdle.Start(); }
OUString& Autolink() { return aStrAutolink; }
OUString& Manuallink() { return aStrManuallink; }
More information about the Libreoffice-commits
mailing list