summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/new.cxx
diff options
context:
space:
mode:
authorTobias Madl <tobias.madl.dev@gmail.com>2014-11-13 14:50:26 +0000
committerTobias Madl <tobias.madl.dev@gmail.com>2014-12-09 12:34:57 +0000
commitea6399b837f1cd4fb28be91b8e311e9378988fc5 (patch)
treeded5273991f72512d5283962311fb1ba02f5d4be /sfx2/source/doc/new.cxx
parente5f67b2e943366042bed9995327840c5a71eae2a (diff)
changed timers to idles
Change-Id: Ic0d7730f7880dfe2e83c84e773b8cc420249b269
Diffstat (limited to 'sfx2/source/doc/new.cxx')
-rw-r--r--sfx2/source/doc/new.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/doc/new.cxx b/sfx2/source/doc/new.cxx
index 65dfc7e2237e..6779c407a039 100644
--- a/sfx2/source/doc/new.cxx
+++ b/sfx2/source/doc/new.cxx
@@ -135,7 +135,7 @@ class SfxNewFileDialog_Impl
PushButton* m_pLoadFilePB;
VclExpander* m_pMoreBt;
- Timer aPrevTimer;
+ Idle aPrevIdle;
OUString aNone;
OUString sLoadTemplate;
@@ -285,7 +285,7 @@ IMPL_LINK_NOARG(SfxNewFileDialog_Impl, TemplateSelect)
// Dialog is not opened
return 0;
- aPrevTimer.Start();
+ aPrevIdle.Start();
return 0;
}
@@ -431,8 +431,8 @@ SfxNewFileDialog_Impl::SfxNewFileDialog_Impl(
m_pRegionLb->SetSelectHdl(LINK(this, SfxNewFileDialog_Impl, RegionSelect));
}
- aPrevTimer.SetTimeout( 500 );
- aPrevTimer.SetTimeoutHdl( LINK( this, SfxNewFileDialog_Impl, Update));
+ aPrevIdle.SetPriority( VCL_IDLE_PRIORITY_LOWEST );
+ aPrevIdle.SetIdleHdl( LINK( this, SfxNewFileDialog_Impl, Update));
m_pRegionLb->SelectEntryPos(0);
RegionSelect(m_pRegionLb);