1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-05 21:57:41 +02:00

Fix oversight in debounce: Singleshot timer

This commit is contained in:
Leo Franchi
2012-07-31 22:21:31 -04:00
parent 18c50a3f02
commit 03121f95ff

View File

@@ -41,8 +41,8 @@ LovedTracksModel::LovedTracksModel( QObject* parent )
, m_smoothingTimer( new QTimer ) , m_smoothingTimer( new QTimer )
, m_limit( LOVED_TRACK_ITEMS ) , m_limit( LOVED_TRACK_ITEMS )
{ {
m_smoothingTimer->setInterval( 150 ); m_smoothingTimer->setInterval( 300 );
m_smoothingTimer->setSingleShot( false ); m_smoothingTimer->setSingleShot( true );
connect( m_smoothingTimer, SIGNAL( timeout() ), this, SLOT( loadTracks() ) ); connect( m_smoothingTimer, SIGNAL( timeout() ), this, SLOT( loadTracks() ) );
} }