1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 06:07:37 +02:00

Don't log invalid sipinfos to the console but show them in the diagnostics window

This commit is contained in:
Dominik Schmidt
2011-05-11 18:52:46 +02:00
parent 986bc1119a
commit 1f7f360d36

View File

@@ -124,11 +124,13 @@ void DiagnosticsDialog::updateLogView()
SipInfo sipInfo = SipHandler::instance()->sipInfo( peerId ); SipInfo sipInfo = SipHandler::instance()->sipInfo( peerId );
if( !sipInfo.isValid() ) if( !sipInfo.isValid() )
{ log.append(
qDebug() << Q_FUNC_INFO << "SipInfo invalid for " << peerId; QString(" %1: %2 (%3)\n")
continue; .arg( peerId )
} .arg( "sipinfo invalid" )
if( sipInfo.isVisible() ) .arg( connected ? "connected" : "not connected")
);
else if( sipInfo.isVisible() )
log.append( log.append(
QString(" %1: %2:%3 (%4)\n") QString(" %1: %2:%3 (%4)\n")
.arg( peerId ) .arg( peerId )