summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-02-13 22:19:13 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-02-13 22:19:13 +0100
commita2155c92f7cdd28c03871da9a13183d636d72984 (patch)
tree2620e91cf33b6693783d8466665178e312dd3567 /playlist.c
parentb6f3c98316435c0e6243d44a92be8d2004b8c23f (diff)
major refactoring of gtk playlist WIP
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/playlist.c b/playlist.c
index e4840234..1c93c936 100644
--- a/playlist.c
+++ b/playlist.c
@@ -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;
}