Qt: Prevent messages from queuing up too quickly (fixes #43)
Jeffrey Pfau jeffrey@endrift.com
Wed, 01 Jul 2015 21:08:29 -0700
2 files changed,
1 insertions(+),
3 deletions(-)
M
src/platform/qt/DisplayGL.cpp
→
src/platform/qt/DisplayGL.cpp
@@ -117,7 +117,7 @@ }
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)); } }
M
src/platform/qt/MessagePainter.cpp
→
src/platform/qt/MessagePainter.cpp
@@ -7,8 +7,6 @@ #include "MessagePainter.h"
#include <QPainter> -#include <QDebug> - extern "C" { #include "gba/video.h" }