[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/multimedia/amarok/src
From: Shane King <kde () dontletsstart ! com>
Date: 2006-05-01 1:05:15
Message-ID: 1146445515.169385.24780.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 536027 by shakes:
If there's a submit in progress when amaroK is quit, save that down to submit.xml \
rather than just losing it if it hadn't got through to last.fm.
M +7 -2 scrobbler.cpp
--- trunk/extragear/multimedia/amarok/src/scrobbler.cpp #536026:536027
@@ -438,10 +438,15 @@
ScrobblerSubmitter::~ScrobblerSubmitter()
{
+ // need to rescue current submit. This may meant it gets submitted twice,
+ // but last.fm handles that, and it's better than losing it when you quit
+ // while a submit is happening
+ for ( QPtrDictIterator<SubmitItem> it( m_ongoingSubmits ); it.current(); ++it )
+ m_submitQueue.inSort( it.current() );
+ m_ongoingSubmits.clear();
+
saveSubmitQueue();
- m_ongoingSubmits.setAutoDelete( true );
- m_ongoingSubmits.clear();
m_submitQueue.setAutoDelete( true );
m_submitQueue.clear();
m_fakeQueue.setAutoDelete( true );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic