diff options
author | Robert Griebl <robert.griebl@nokia.com> | 2010-07-02 16:19:34 (GMT) |
---|---|---|
committer | Robert Griebl <robert.griebl@nokia.com> | 2010-07-02 16:19:34 (GMT) |
commit | ac52dee57e4417ebd6f6049cfb7998fe9d62e8db (patch) | |
tree | 9513ea9f871c2ea79fd436d226ed6ac9f85c5bef /tools | |
parent | 7a1722cb33c238c288664a286b221a9cccfcfd2d (diff) | |
download | Qt-ac52dee57e4417ebd6f6049cfb7998fe9d62e8db.zip Qt-ac52dee57e4417ebd6f6049cfb7998fe9d62e8db.tar.gz Qt-ac52dee57e4417ebd6f6049cfb7998fe9d62e8db.tar.bz2 |
Don't write to the logger widget while the application is closing down.
Reviewed-by: TrustMe
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qml/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qml/main.cpp b/tools/qml/main.cpp index 900a464..d0817bc 100644 --- a/tools/qml/main.cpp +++ b/tools/qml/main.cpp @@ -91,7 +91,7 @@ void showWarnings() void myMessageOutput(QtMsgType type, const char *msg) { - if (!logger.isNull()) { + if (!logger.isNull() && !QCoreApplication::closingDown()) { QString strMsg = QString::fromAscii(msg); QMetaObject::invokeMethod(logger.data(), "append", Q_ARG(QString, strMsg)); } else { |