media library: fix mouse event handler
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user