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:
@@ -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 )
|
||||||
|
Reference in New Issue
Block a user