mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-24 09:49:42 +01:00
Don't log invalid sipinfos to the console but show them in the diagnostics window
This commit is contained in:
parent
986bc1119a
commit
1f7f360d36
@ -124,11 +124,13 @@ void DiagnosticsDialog::updateLogView()
|
||||
|
||||
SipInfo sipInfo = SipHandler::instance()->sipInfo( peerId );
|
||||
if( !sipInfo.isValid() )
|
||||
{
|
||||
qDebug() << Q_FUNC_INFO << "SipInfo invalid for " << peerId;
|
||||
continue;
|
||||
}
|
||||
if( sipInfo.isVisible() )
|
||||
log.append(
|
||||
QString(" %1: %2 (%3)\n")
|
||||
.arg( peerId )
|
||||
.arg( "sipinfo invalid" )
|
||||
.arg( connected ? "connected" : "not connected")
|
||||
);
|
||||
else if( sipInfo.isVisible() )
|
||||
log.append(
|
||||
QString(" %1: %2:%3 (%4)\n")
|
||||
.arg( peerId )
|
||||
|
Loading…
x
Reference in New Issue
Block a user