more fixes + version bump

This commit is contained in:
unK
2008-08-27 21:29:46 +02:00
parent ae7d1a0985
commit 71cf9e9521
3 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
AC_INIT(configure.in) AC_INIT(configure.in)
AM_CONFIG_HEADER(config.h) AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(ncmpcpp, 0.2) AM_INIT_AUTOMAKE(ncmpcpp, 0.2.1)
AC_PREREQ(2.59) AC_PREREQ(2.59)

View File

@@ -1322,7 +1322,7 @@ int main(int argc, char *argv[])
{ {
LOCK_STATUSBAR; LOCK_STATUSBAR;
wFooter->WriteXY(0, Config.statusbar_visibility, "Add: ", 1); wFooter->WriteXY(0, Config.statusbar_visibility, "Add: ", 1);
string path = wFooter->GetString(""); string path = wFooter->GetString("", TraceMpdStatus);
UNLOCK_STATUSBAR; UNLOCK_STATUSBAR;
if (!path.empty()) if (!path.empty())
{ {

View File

@@ -327,7 +327,7 @@ void NcmpcppStatusChanged(MPDConnection *Mpd, MPDStatusChanges changed, void *da
{ {
if (!mPlaylist->Empty()) if (!mPlaylist->Empty())
{ {
if (Config.repeat_one_mode && repeat_one_allowed && (old_playing+1 == now_playing || old_playing-vPlaylist.size()+1 == now_playing)) if (Config.repeat_one_mode && repeat_one_allowed && (old_playing+1 == now_playing || !now_playing))
{ {
std::swap<int>(now_playing,old_playing); std::swap<int>(now_playing,old_playing);
Mpd->Play(now_playing); Mpd->Play(now_playing);
@@ -357,7 +357,7 @@ void NcmpcppStatusChanged(MPDConnection *Mpd, MPDStatusChanges changed, void *da
int elapsed = Mpd->GetElapsedTime(); int elapsed = Mpd->GetElapsedTime();
// 'repeat one' mode check - be sure that we deal with item with known length // 'repeat one' mode check - be sure that we deal with item with known length
if (Mpd->GetCurrentSong().GetTotalLength() && elapsed == Mpd->GetCurrentSong().GetTotalLength()) if (Mpd->GetCurrentSong().GetTotalLength() && elapsed == Mpd->GetCurrentSong().GetTotalLength()-1)
repeat_one_allowed = 1; repeat_one_allowed = 1;
if (!block_statusbar_update && Config.statusbar_visibility) if (!block_statusbar_update && Config.statusbar_visibility)