wok-current view xfmedia/stuff/xfmedia-empty-prev-next-fix.patch @ rev 23539
updated python-pygments (2.2.0 -> 2.6.1)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 06 17:01:19 2020 +0100 (2020-04-06) |
parents | |
children |
line source
1 diff -wbBur xfmedia-0.9.2/src/mainwin.c xfmedia-0.9.2.my/src/mainwin.c
2 --- xfmedia-0.9.2/src/mainwin.c 2006-11-27 07:21:23.000000000 +0000
3 +++ xfmedia-0.9.2.my/src/mainwin.c 2010-11-01 13:01:17.000000000 +0000
4 @@ -1865,6 +1865,10 @@
5 gboolean use_playlist_q = xfmedia_playlist_queue_n_entries(mwin->playlist_q);
6 gboolean ret = FALSE;
8 + if(xfmedia_playlist_get_n_entries(mwin->plist) == 0)
9 +// if(xfmedia_playlist_queue_is_empty(mwin->plist))
10 + return;
11 +
12 if(mwin->cur_playing
13 && xfmedia_settings_get_bool("/xfmedia/playlist/shuffle")
14 && !use_playlist_q )
15 @@ -1899,6 +1903,10 @@
16 {
17 gint tot_items, idx = -1;
19 + if(xfmedia_playlist_get_n_entries(mwin->plist) == 0)
20 +// if(xfmedia_playlist_queue_is_empty(mwin->plist))
21 + return;
22 +
23 if(xfmedia_settings_get_bool("/xfmedia/playlist/shuffle")) {
24 XfmediaPlaylistEntryRef *ref = NULL;
25 gboolean playing = FALSE;