media library: fix mouse event handler

This commit is contained in:
Andrzej Rybczak
2014-09-12 08:42:33 +02:00
parent f28f5ec0ba
commit 27dc96bece

View File

@@ -474,7 +474,7 @@ void MediaLibrary::mouseButtonPressed(MEVENT me)
{ {
auto tryNextColumn = [this]() -> bool { auto tryNextColumn = [this]() -> bool {
bool result = true; bool result = true;
if (isActiveWindow(Songs)) if (!isActiveWindow(Songs))
{ {
if (nextColumnAvailable()) if (nextColumnAvailable())
nextColumn(); nextColumn();
@@ -485,7 +485,7 @@ void MediaLibrary::mouseButtonPressed(MEVENT me)
}; };
auto tryPreviousColumn = [this]() -> bool { auto tryPreviousColumn = [this]() -> bool {
bool result = true; bool result = true;
if (isActiveWindow(Tags)) if (!isActiveWindow(Tags))
{ {
if (previousColumnAvailable()) if (previousColumnAvailable())
previousColumn(); previousColumn();
@@ -516,7 +516,7 @@ void MediaLibrary::mouseButtonPressed(MEVENT me)
} }
else if (!Albums.empty() && Albums.hasCoords(me.x, me.y)) else if (!Albums.empty() && Albums.hasCoords(me.x, me.y))
{ {
if (isActiveWindow(Albums)) if (!isActiveWindow(Albums))
{ {
bool success; bool success;
if (isActiveWindow(Tags)) if (isActiveWindow(Tags))