1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-14 13:01:53 +02:00

* Finishing a scan should re-set the source's state.

This commit is contained in:
Christian Muehlhaeuser 2011-02-23 15:45:02 +01:00
parent 5bd32efdf6
commit 7bf4304792
4 changed files with 14 additions and 4 deletions

View File

@ -156,6 +156,14 @@ Source::scanningProgress( unsigned int files )
}
void
Source::scanningFinished( unsigned int files )
{
m_textStatus = tr( "Online" );
emit stateChanged();
}
void
Source::onStateChanged( DBSyncConnection::State newstate, DBSyncConnection::State oldstate, const QString& info )
{

View File

@ -47,7 +47,8 @@ public:
void setControlConnection( ControlConnection* cc );
void scanningProgress( unsigned int files );
void scanningFinished( unsigned int files );
void setOffline();
void setOnline();

View File

@ -111,7 +111,7 @@ MusicScanner::listerFinished( const QMap<QString, unsigned int>& newmtimes )
// any remaining stuff that wasnt emitted as a batch:
if( m_scannedfiles.length() )
{
SourceList::instance()->getLocal()->scanningProgress( m_scanned );
SourceList::instance()->getLocal()->scanningFinished( m_scanned );
commitBatch( m_scannedfiles );
}

View File

@ -483,16 +483,17 @@ TomahawkApp::setupSIP()
{
qDebug() << Q_FUNC_INFO;
#ifdef GLOOX_FOUND
//FIXME: jabber autoconnect is really more, now that there is sip -- should be renamed and/or split out of jabber-specific settings
if( !arguments().contains( "--nosip" ) && TomahawkSettings::instance()->jabberAutoConnect() )
{
#ifdef GLOOX_FOUND
m_xmppBot = new XMPPBot( this );
#endif
qDebug() << "Connecting SIP classes";
m_sipHandler->connectPlugins( true );
// m_sipHandler->setProxy( *TomahawkUtils::proxy() );
}
#endif
}