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

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 2fb9f1c2a1)
r14.0.x
Michele Calgaro 10 years ago
parent b780cd5e31
commit 0783a62488

@ -33,6 +33,7 @@
#include <tqlabel.h>
#include <tqimage.h>
#include <tqevent.h>
#include <tqeventloop.h>
#include <tqapplication.h>
#include <tqsplitter.h>
#include <tqtimer.h>
@ -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());

Loading…
Cancel
Save