File src/command.cpp changed (mode: 100644) (index 78b6dbf..7443464) |
... |
... |
Control::crop(Songlist * list, int mode) |
892 |
892 |
return false; |
return false; |
893 |
893 |
} |
} |
894 |
894 |
|
|
|
895 |
|
EXIT_IDLE; |
|
896 |
|
|
895 |
897 |
/* Crop to currently playing song */ |
/* Crop to currently playing song */ |
896 |
898 |
if (mode == CROP_PLAYING) |
if (mode == CROP_PLAYING) |
897 |
899 |
{ |
{ |
|
... |
... |
Control::newplaylist(string fn) |
1527 |
1529 |
list = new Songlist(); |
list = new Songlist(); |
1528 |
1530 |
assert(list != NULL); |
assert(list != NULL); |
1529 |
1531 |
|
|
|
1532 |
|
EXIT_IDLE; |
|
1533 |
|
|
1530 |
1534 |
if (mpd_run_save(conn->h(), fn.c_str())) { |
if (mpd_run_save(conn->h(), fn.c_str())) { |
1531 |
1535 |
list = new Songlist(); |
list = new Songlist(); |
1532 |
1536 |
assert(list != NULL); |
assert(list != NULL); |
|
... |
... |
Control::deleteplaylist(string fn) |
1547 |
1551 |
vector<Songlist *>::iterator i; |
vector<Songlist *>::iterator i; |
1548 |
1552 |
Songlist * lst; |
Songlist * lst; |
1549 |
1553 |
|
|
|
1554 |
|
EXIT_IDLE; |
|
1555 |
|
|
1550 |
1556 |
/* FIXME: implement PlaylistList for this functionality */ |
/* FIXME: implement PlaylistList for this functionality */ |
1551 |
1557 |
i = playlists.begin(); |
i = playlists.begin(); |
1552 |
1558 |
do { |
do { |