diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-02-13 22:19:13 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-02-13 22:19:13 +0100 |
commit | a2155c92f7cdd28c03871da9a13183d636d72984 (patch) | |
tree | 2620e91cf33b6693783d8466665178e312dd3567 /playlist.c | |
parent | b6f3c98316435c0e6243d44a92be8d2004b8c23f (diff) |
major refactoring of gtk playlist WIP
Diffstat (limited to 'playlist.c')
-rw-r--r-- | playlist.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1428,6 +1428,12 @@ pl_delete_selected (void) { pl_remove (it); } } + if (playlist->current_row[PL_MAIN] >= playlist->count[PL_MAIN]) { + playlist->current_row[PL_MAIN] == playlist->count[PL_MAIN] - 1; + } + if (playlist->current_row[PL_SEARCH] >= playlist->count[PL_SEARCH]) { + playlist->current_row[PL_SEARCH] == playlist->count[PL_SEARCH] - 1; + } GLOBAL_UNLOCK; return ret; } |