diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-08-19 07:23:13 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-08-19 07:23:40 (GMT) |
commit | 12bdeb146a479b008d9f65c022bb22a15989e558 (patch) | |
tree | 3378667748368d2016ccd149efcf77fab2b27425 /src/scripttools/debugging | |
parent | 94958cf9ff173830fbed66cf4b4158c51df1df7c (diff) | |
download | Qt-12bdeb146a479b008d9f65c022bb22a15989e558.zip Qt-12bdeb146a479b008d9f65c022bb22a15989e558.tar.gz Qt-12bdeb146a479b008d9f65c022bb22a15989e558.tar.bz2 |
make sure we have a message handler
Diffstat (limited to 'src/scripttools/debugging')
-rw-r--r-- | src/scripttools/debugging/qscriptdebuggerconsoleglobalobject.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/scripttools/debugging/qscriptdebuggerconsoleglobalobject.cpp b/src/scripttools/debugging/qscriptdebuggerconsoleglobalobject.cpp index adb4f33..73049d5 100644 --- a/src/scripttools/debugging/qscriptdebuggerconsoleglobalobject.cpp +++ b/src/scripttools/debugging/qscriptdebuggerconsoleglobalobject.cpp @@ -361,6 +361,7 @@ void QScriptDebuggerConsoleGlobalObject::warning(const QString &text, int lineNumber, int columnNumber) { Q_D(QScriptDebuggerConsoleGlobalObject); + Q_ASSERT(d->messageHandler != 0); d->messageHandler->message(QtWarningMsg, text, fileName, lineNumber, columnNumber); } @@ -369,6 +370,7 @@ void QScriptDebuggerConsoleGlobalObject::message(const QString &text, int lineNumber, int columnNumber) { Q_D(QScriptDebuggerConsoleGlobalObject); + Q_ASSERT(d->messageHandler != 0); d->messageHandler->message(QtDebugMsg, text, fileName, lineNumber, columnNumber); } @@ -377,6 +379,7 @@ void QScriptDebuggerConsoleGlobalObject::error(const QString &text, int lineNumber, int columnNumber) { Q_D(QScriptDebuggerConsoleGlobalObject); + Q_ASSERT(d->messageHandler != 0); d->messageHandler->message(QtCriticalMsg, text, fileName, lineNumber, columnNumber); } |