OSDN Git Service

QmlJSDebugger: Don't mark failing connection attempt as swarning
authorKai Koehne <kai.koehne@nokia.com>
Thu, 16 Dec 2010 15:20:21 +0000 (16:20 +0100)
committerKai Koehne <kai.koehne@nokia.com>
Thu, 16 Dec 2010 15:20:21 +0000 (16:20 +0100)
We're trying multiple times to connect, and it's just normal that
the first tries will fail (because the app isn't initialized yet),
so don't log it as a warning.

src/plugins/debugger/qml/qmladapter.cpp

index 4c32f3c..fce926e 100644 (file)
@@ -148,7 +148,7 @@ void QmlAdapter::sendMessage(const QByteArray &msg)
 
 void QmlAdapter::connectionErrorOccurred(QAbstractSocket::SocketError socketError)
 {
-    showConnectionErrorMessage(tr("Error: (%1) %2", "%1=error code, %2=error message")
+    showConnectionStatusMessage(tr("Error: (%1) %2", "%1=error code, %2=error message")
                                 .arg(d->m_conn->error()).arg(d->m_conn->errorString()));
 
     // this is only an error if we are already connected and something goes wrong.