summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 9232f9e..4cca654 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,5 +1,5 @@
/*
-Copyright (c) 2008-2012
+Copyright (c) 2008-2013
Lars-Dominik Braun <lars@6xq.net>
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -372,8 +372,8 @@ static void BarMainLoop (BarApp_t *app) {
/* what's next? */
if (app->playlist != NULL) {
PianoSong_t *histsong = app->playlist;
- app->playlist = app->playlist->next;
- histsong->next = NULL;
+ app->playlist = PianoListNextP (app->playlist);
+ histsong->head.next = NULL;
BarUiHistoryPrepend (app, histsong);
}
if (app->playlist == NULL) {