media library: fix mouse event handler

master
Andrzej Rybczak 12 years ago
parent f28f5ec0ba
commit 27dc96bece
  1. 6
      src/media_library.cpp

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

Loading…
Cancel
Save