From 2fb9f1c2a1e057d95e205873a1ef92d56c2f4de0 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 30 May 2015 14:02:22 +0900 Subject: Fixed delay in slideshow from toolbar button. This resolves bug 2306 Signed-off-by: Michele Calgaro --- digikam/digikam/digikamview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/digikam/digikam/digikamview.cpp b/digikam/digikam/digikamview.cpp index 48dc1d25..29602829 100644 --- a/digikam/digikam/digikamview.cpp +++ b/digikam/digikam/digikamview.cpp @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -1542,7 +1543,7 @@ void DigikamView::slideShow(ImageInfoList &infoList) settings.pictInfoMap.insert(info->kurl(), pictInfo); emit signalProgressValue((int)((i++/cnt)*100.0)); - kapp->processEvents(); + kapp->eventLoop()->processEvents(TQEventLoop::AllEvents & ~TQEventLoop::WaitForMore); } emit signalProgressBarMode(StatusProgressBar::TextMode, TQString()); -- cgit v1.2.1