Qt: Prevent messages from queuing up too quickly (fixes #43)

This commit is contained in:
Jeffrey Pfau 2015-07-01 21:08:29 -07:00
parent 5afa24c656
commit 27898fb1f3
2 changed files with 1 additions and 3 deletions

View File

@ -117,7 +117,7 @@ void DisplayGL::framePosted(const uint32_t* buffer) {
void DisplayGL::showMessage(const QString& message) {
if (m_drawThread) {
QMetaObject::invokeMethod(m_painter, "showMessage", Q_ARG(const QString&, message));
QMetaObject::invokeMethod(m_painter, "showMessage", Qt::BlockingQueuedConnection, Q_ARG(const QString&, message));
}
}

View File

@ -7,8 +7,6 @@
#include <QPainter>
#include <QDebug>
extern "C" {
#include "gba/video.h"
}