mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-13 20:39:57 +01:00
Don't rescan the local collection if the settings dialog is closed with success but the path hasn't changed
This commit is contained in:
parent
21e6fb8c09
commit
608b90867a
@ -1,4 +1,6 @@
|
||||
Version 0.0.2:
|
||||
* Don't run a rescan of the local collection if the settings dialog is
|
||||
closed successfully but the path hasn't changed.
|
||||
* Don't attempt to connect to unavailable Twitter peers over and over.
|
||||
* Find Twitter peers if the peer's Got Tomahawk? tweet is not their latest
|
||||
tweet.
|
||||
|
@ -44,6 +44,9 @@ ScanManager::ScanManager( QObject* parent )
|
||||
s_instance = this;
|
||||
|
||||
connect( TomahawkSettings::instance(), SIGNAL( changed() ), SLOT( onSettingsChanged() ) );
|
||||
|
||||
if ( TomahawkSettings::instance()->hasScannerPath() )
|
||||
m_currScannerPath = TomahawkSettings::instance()->scannerPath();
|
||||
}
|
||||
|
||||
|
||||
@ -76,8 +79,12 @@ ScanManager::~ScanManager()
|
||||
void
|
||||
ScanManager::onSettingsChanged()
|
||||
{
|
||||
if ( TomahawkSettings::instance()->hasScannerPath() )
|
||||
runManualScan( TomahawkSettings::instance()->scannerPath() );
|
||||
if ( TomahawkSettings::instance()->hasScannerPath() &&
|
||||
m_currScannerPath != TomahawkSettings::instance()->scannerPath() )
|
||||
{
|
||||
m_currScannerPath = TomahawkSettings::instance()->scannerPath();
|
||||
runManualScan( m_currScannerPath );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -53,6 +53,7 @@ private:
|
||||
|
||||
MusicScanner* m_scanner;
|
||||
QThread* m_musicScannerThreadController;
|
||||
QString m_currScannerPath;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user