bindings: guarantee ordering of bindings of the same key

This commit is contained in:
Andrzej Rybczak
2012-09-20 05:00:11 +02:00
parent 07fc58015e
commit add40d542d
4 changed files with 32 additions and 14 deletions

View File

@@ -277,9 +277,9 @@ void Action::Seek()
Key input = Key::read(*wFooter);
auto k = Bindings.get(input);
if (k.first == k.second || !k.first->second.isSingle()) // no single action?
if (k.first == k.second || !k.first->isSingle()) // no single action?
break;
Action *a = k.first->second.action();
Action *a = k.first->action();
if (dynamic_cast<SeekForward *>(a))
{
if (songpos < Mpd.GetTotalTime())