Commit ce932d6d6f4d888bef42b2bd46b9d4e9471264cc
Reset cursor position when clearing a list
Author: Kim Tore Jensen
Author date (UTC): 2015-08-30 10:55
Committer name: Kim Tore Jensen
Committer date (UTC): 2015-08-30 10:55
Parent(s): 54a44bfddf1d45852da0e55a3e2dacde6f64180c
Signing key:
Tree: 0e75d63ac11f952da3f793276ff2257f6de8bfa6
File src/list.cpp changed (mode: 100644) (index 8249240..957af2b) |
... |
... |
Songlist::Songlist() |
59 |
59 |
Songlist::~Songlist() |
Songlist::~Songlist() |
60 |
60 |
{ |
{ |
61 |
61 |
this->clear(); |
this->clear(); |
62 |
|
position = 0; |
|
63 |
62 |
} |
} |
64 |
63 |
|
|
65 |
64 |
/* |
/* |
|
... |
... |
void Songlist::clear() |
699 |
698 |
songs.clear(); |
songs.clear(); |
700 |
699 |
filtersongs.clear(); |
filtersongs.clear(); |
701 |
700 |
|
|
|
701 |
|
position = 0; |
702 |
702 |
length = 0; |
length = 0; |
703 |
703 |
qlen = 0; |
qlen = 0; |
704 |
704 |
qpos = 0; |
qpos = 0; |