Fixed delay in slideshow from toolbar button. This resolves bug 2306

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/1/head
Michele Calgaro 9 years ago
parent eb8555ba76
commit 2fb9f1c2a1

@ -33,6 +33,7 @@
#include <tqlabel.h> #include <tqlabel.h>
#include <tqimage.h> #include <tqimage.h>
#include <tqevent.h> #include <tqevent.h>
#include <tqeventloop.h>
#include <tqapplication.h> #include <tqapplication.h>
#include <tqsplitter.h> #include <tqsplitter.h>
#include <tqtimer.h> #include <tqtimer.h>
@ -1542,7 +1543,7 @@ void DigikamView::slideShow(ImageInfoList &infoList)
settings.pictInfoMap.insert(info->kurl(), pictInfo); settings.pictInfoMap.insert(info->kurl(), pictInfo);
emit signalProgressValue((int)((i++/cnt)*100.0)); emit signalProgressValue((int)((i++/cnt)*100.0));
kapp->processEvents(); kapp->eventLoop()->processEvents(TQEventLoop::AllEvents & ~TQEventLoop::WaitForMore);
} }
emit signalProgressBarMode(StatusProgressBar::TextMode, TQString()); emit signalProgressBarMode(StatusProgressBar::TextMode, TQString());

Loading…
Cancel
Save