Code

screen_play: fixed list_window.range_selection usage
authorMax Kellermann <max@duempel.org>
Wed, 30 Sep 2009 15:50:50 +0000 (17:50 +0200)
committerMax Kellermann <max@duempel.org>
Wed, 30 Sep 2009 15:50:50 +0000 (17:50 +0200)
It's a bool.

src/screen_play.c

index f3a0804903155f4906a5a0928bebdfb20958bb9c..72335fc541820faa51e4286e365d9ce212f47787 100644 (file)
@@ -79,8 +79,7 @@ playlist_changed_callback(struct mpdclient *c, int event, gpointer data)
        case PLAYLIST_EVENT_DELETE:
                break;
        case PLAYLIST_EVENT_MOVE:
-               if(lw->range_selection < 0)
-               {
+               if (!lw->range_selection) {
                        lw->selected = *((int *) data);
                        if (lw->selected < lw->start)
                                lw->start--;