From 2558905891d70fea5ed5a2d427dbb76816bad151 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sat, 4 May 2013 06:09:31 +0200 Subject: [PATCH] * Style fixes. --- src/libtomahawk/Source.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/Source.cpp b/src/libtomahawk/Source.cpp index 7664a122c..831b8e61c 100644 --- a/src/libtomahawk/Source.cpp +++ b/src/libtomahawk/Source.cpp @@ -127,6 +127,7 @@ Source::setStats( const QVariantMap& m ) emit stateChanged(); } + QString Source::nodeId() const { @@ -134,6 +135,7 @@ Source::nodeId() const } + QString Source::friendlyName() const { @@ -425,7 +427,7 @@ Source::onStateChanged( DBSyncConnection::State newstate, DBSyncConnection::Stat unsigned int Source::trackCount() const { - return m_stats.value( "numfiles" ).toUInt(); + return m_stats.value( "numfiles", 0 ).toUInt(); }