summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@novell.com>2011-09-06 16:25:49 +0200
committerCaolán McNamara <caolanm@redhat.com>2011-09-08 11:31:09 +0100
commit66d627beac2d018b7bb0c9eefd863cae6bca2e64 (patch)
tree208a27af243c8bc0c55186c77250d147e83c97da
parentec6afdaa4e05aa93ab1de7c66304b9f8ad7c25c6 (diff)
Fix hang in slideshow.
This fixes fdo#32861, by processing all remaining events after the post-yield callback comes around (that's supposed to be the time when the app can spend time on event processing). Signed-off-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sd/source/ui/slideshow/slideshowimpl.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx
index 3ae8df2f3..8a400d294 100644
--- a/sd/source/ui/slideshow/slideshowimpl.cxx
+++ b/sd/source/ui/slideshow/slideshowimpl.cxx
@@ -1883,6 +1883,9 @@ IMPL_LINK( SlideshowImpl, PostYieldListener, void*, EMPTYARG )
{
Application::EnableNoYieldMode(false);
Application::RemovePostYieldListener(LINK(this, SlideshowImpl, PostYieldListener));
+ Application::Reschedule(true); // fix for fdo#32861 - process
+ // *all* outstanding events after
+ // yield is done.
if (mbDisposed)
return 0;
return updateSlideShow();