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:
@@ -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() ) );
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user