projects
/
groove
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modified: bottombar.cpp
[groove]
/
playlist.cpp
diff --git
a/playlist.cpp
b/playlist.cpp
index
3c9f6ea
..
e79229d
100644
(file)
--- a/
playlist.cpp
+++ b/
playlist.cpp
@@
-17,6
+17,7
@@
void playlist::markPlayed(int position)
}
void playlist::freeMemory(int position)
{
}
void playlist::freeMemory(int position)
{
+ pList->at(position)->downloaded = false;
delete pList->at(position)->buffer;
pList->at(position)->buffer = new QBuffer();
}
delete pList->at(position)->buffer;
pList->at(position)->buffer = new QBuffer();
}
@@
-45,6
+46,8
@@
bool playlist::setCurrentPlaying(int position)
if(pList->size() > position)
{
this->currentplayingitem = position;
if(pList->size() > position)
{
this->currentplayingitem = position;
+ if(!pList->at(position)->downloaded && this->currentdownloaditem != this->currentplayingitem)
+ this->beginDownload(position);
/*if(pList->at(position)->bufferready == false &&)
{
if(!pList->at(position)->downloaded)
/*if(pList->at(position)->bufferready == false &&)
{
if(!pList->at(position)->downloaded)