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:
parent
5bd32efdf6
commit
7bf4304792
@ -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 )
|
||||
{
|
||||
|
@ -47,7 +47,8 @@ public:
|
||||
void setControlConnection( ControlConnection* cc );
|
||||
|
||||
void scanningProgress( unsigned int files );
|
||||
|
||||
void scanningFinished( unsigned int files );
|
||||
|
||||
void setOffline();
|
||||
void setOnline();
|
||||
|
||||
|
@ -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 );
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user