Do not look at emptiness when changing windows

This commit is contained in:
Andrzej Rybczak
2016-11-13 06:30:12 +01:00
parent 9b6a080a29
commit dbf5a1dbd8
2 changed files with 5 additions and 5 deletions

View File

@@ -487,7 +487,7 @@ void MediaLibrary::mouseButtonPressed(MEVENT me)
}
return result;
};
if (!Tags.empty() && Tags.hasCoords(me.x, me.y))
if (Tags.hasCoords(me.x, me.y))
{
if (!tryPreviousColumn() || !tryPreviousColumn())
return;
@@ -502,7 +502,7 @@ void MediaLibrary::mouseButtonPressed(MEVENT me)
Albums.clear();
Songs.clear();
}
else if (!Albums.empty() && Albums.hasCoords(me.x, me.y))
else if (Albums.hasCoords(me.x, me.y))
{
if (!isActiveWindow(Albums))
{
@@ -524,7 +524,7 @@ void MediaLibrary::mouseButtonPressed(MEVENT me)
Screen<WindowType>::mouseButtonPressed(me);
Songs.clear();
}
else if (!Songs.empty() && Songs.hasCoords(me.x, me.y))
else if (Songs.hasCoords(me.x, me.y))
{
if (!tryNextColumn() || !tryNextColumn())
return;