diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-04-21 02:02:20 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-04-21 02:02:20 (GMT) |
commit | f92518f6de1a13b591fb2c2037714b213bdcff89 (patch) | |
tree | 95649cb045f4b926d2ee214beaad5627b0ef7c53 /tools/qml/main.cpp | |
parent | e79202be457298c48b13eef4f8c35df186216aea (diff) | |
download | Qt-f92518f6de1a13b591fb2c2037714b213bdcff89.zip Qt-f92518f6de1a13b591fb2c2037714b213bdcff89.tar.gz Qt-f92518f6de1a13b591fb2c2037714b213bdcff89.tar.bz2 |
Make logger widget thread safe.
Diffstat (limited to 'tools/qml/main.cpp')
-rw-r--r-- | tools/qml/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/qml/main.cpp b/tools/qml/main.cpp index a79e1b1..e90d729 100644 --- a/tools/qml/main.cpp +++ b/tools/qml/main.cpp @@ -93,7 +93,8 @@ void showWarnings() void myMessageOutput(QtMsgType type, const char *msg) { if (!logger.isNull()) { - logger.data()->append(type, msg); + QString strMsg = QString::fromAscii(msg); + QMetaObject::invokeMethod(logger.data(), "append", Q_ARG(QString, strMsg)); } else { warnings += msg; warnings += QLatin1Char('\n'); |