mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-12 09:04:33 +02:00
Hide debug tooltips unless --verbose.
This commit is contained in:
@@ -298,7 +298,7 @@ Servent::registerPeer( const Tomahawk::peerinfo_ptr& peerInfo )
|
||||
{
|
||||
if ( peerInfo->hasControlConnection() )
|
||||
{
|
||||
peerInfoDebug( peerInfo ) << "already had control connection, not doin nuffin: " << peerInfo->controlConnection()->name();
|
||||
peerInfoDebug( peerInfo ) << "already had control connection, doing nothing: " << peerInfo->controlConnection()->name();
|
||||
tLog() << "existing control connection has following peers:";
|
||||
foreach ( const peerinfo_ptr& otherPeerInfo, peerInfo->controlConnection()->peerInfos() )
|
||||
{
|
||||
|
@@ -39,6 +39,7 @@
|
||||
#include "utils/ImageRegistry.h"
|
||||
#include "utils/TomahawkUtilsGui.h"
|
||||
#include "utils/Logger.h"
|
||||
#include "TomahawkApp.h"
|
||||
|
||||
/// SourceItem
|
||||
|
||||
@@ -156,7 +157,9 @@ SourceItem::tooltip() const
|
||||
|
||||
QString t;
|
||||
|
||||
|
||||
bool showDebugInfo = APP->arguments().contains( "--verbose" );
|
||||
if ( showDebugInfo )
|
||||
{
|
||||
// This is kind of debug output for now.
|
||||
t.append( "<PRE>" );
|
||||
|
||||
@@ -173,6 +176,7 @@ SourceItem::tooltip() const
|
||||
t.append( line + "\n\n" );
|
||||
}
|
||||
t.append( "</PRE>" );
|
||||
}
|
||||
|
||||
if ( !m_source->currentTrack().isNull() )
|
||||
t.append( m_source->textStatus() );
|
||||
|
Reference in New Issue
Block a user