From d7cd982b294593b24bb4ff76199746db9eb8febc Mon Sep 17 00:00:00 2001 From: unK Date: Fri, 5 Sep 2008 10:43:25 +0200 Subject: [PATCH] don't disable bolding if we won't move now playing song anyway --- src/ncmpcpp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ncmpcpp.cpp b/src/ncmpcpp.cpp index 816307cc..99831506 100644 --- a/src/ncmpcpp.cpp +++ b/src/ncmpcpp.cpp @@ -1570,7 +1570,7 @@ int main(int argc, char *argv[]) mPlaylist->GetSelectedList(list); for (vector::iterator it = list.begin(); it != list.end(); it++) - if (*it == now_playing) + if (*it == now_playing && list.front() > 0) mPlaylist->BoldOption(now_playing, 0); vectororigs(list); @@ -1662,7 +1662,7 @@ int main(int argc, char *argv[]) mPlaylist->GetSelectedList(list); for (vector::iterator it = list.begin(); it != list.end(); it++) - if (*it == now_playing) + if (*it == now_playing && list.back() < mPlaylist->Size()-1) mPlaylist->BoldOption(now_playing, 0); vectororigs(list);