wok view xfmedia/stuff/xfmedia-empty-prev-next-fix.patch @ rev 10964
fcitx: up to v4.1.2
author | Liu Peng <hipeng@yahoo.com> |
---|---|
date | Mon Oct 03 22:42:21 2011 +0800 (2011-10-03) |
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;