summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorTobias Madl <tobias.madl.dev@gmail.com>2014-11-10 14:37:14 +0000
committerTobias Madl <tobias.madl.dev@gmail.com>2014-12-09 12:34:53 +0000
commit484129d08cc48595fe735f77bc3a30b5b8c3475a (patch)
tree5409b1d21c72cf538649c36fe1ba05574678f7a4 /cui
parent75cc10b9fe9a67c4f796686696246d476c156afc (diff)
changed timer to idle
Change-Id: I713976070359e1f5628e7b34f7fd8f6f26b2372e
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/linkdlg.cxx4
-rw-r--r--cui/source/inc/linkdlg.hxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/dialogs/linkdlg.cxx b/cui/source/dialogs/linkdlg.cxx
index a6909d663dd2..5f515db7ddee 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 d5440bda7a1b..64e9b87ac53d 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; }