Showing the changes to libraries/shared/src/GenericThread.cpp (1 of 4 files). Show all
Unified · Split
| @@ -10,6 +10,7 @@ · 9 unmodified lines | ||
| 10 | 10 | // |
| 11 | 11 | |
| 12 | 12 | #include <QDebug> |
| 13 | +#include <QtCore/QCoreApplication> | |
| 13 | 14 | |
| 14 | 15 | #include "GenericThread.h" |
| 15 | 16 | |
| @@ -73,6 +74,7 @@ void GenericThread::threadRoutine() { · 57 unmodified lines | ||
| 73 | 74 | } |
| 74 | 75 | |
| 75 | 76 | while (!_stopThread) { |
| 77 | + QCoreApplication::processEvents(); | |
| 76 | 78 | |
| 77 | 79 | // override this function to do whatever your class actually does, return false to exit thread early |
| 78 | 80 | if (!process()) { |