changeset 35500:6422042d74d9

Simplify assignments.
author ib
date Tue, 04 Dec 2012 19:26:03 +0000
parents af72f85b6f44
children 7bb176fac55c
files gui/ui/actions.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/ui/actions.c	Tue Dec 04 19:13:18 2012 +0000
+++ b/gui/ui/actions.c	Tue Dec 04 19:26:03 2012 +0000
@@ -386,7 +386,7 @@
 
         if (prev) {
             uiSetFile(prev->path, prev->name, STREAMTYPE_FILE);
-            guiInfo.PlaylistNext = (guiInfo.Playing ? False : True);
+            guiInfo.PlaylistNext = !guiInfo.Playing;
             guiInfo.Track = (int)listMgr(PLAYLIST_ITEM_GET_POS, prev);
             break;
         }
@@ -442,7 +442,7 @@
 
         if (next) {
             uiSetFile(next->path, next->name, STREAMTYPE_FILE);
-            guiInfo.PlaylistNext = (guiInfo.Playing ? False : True);
+            guiInfo.PlaylistNext = !guiInfo.Playing;
             guiInfo.Track = (int)listMgr(PLAYLIST_ITEM_GET_POS, next);
             break;
         }