Do not look at emptiness when changing windows
This commit is contained in:
@@ -487,7 +487,7 @@ void MediaLibrary::mouseButtonPressed(MEVENT me)
|
|||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
if (!Tags.empty() && Tags.hasCoords(me.x, me.y))
|
if (Tags.hasCoords(me.x, me.y))
|
||||||
{
|
{
|
||||||
if (!tryPreviousColumn() || !tryPreviousColumn())
|
if (!tryPreviousColumn() || !tryPreviousColumn())
|
||||||
return;
|
return;
|
||||||
@@ -502,7 +502,7 @@ void MediaLibrary::mouseButtonPressed(MEVENT me)
|
|||||||
Albums.clear();
|
Albums.clear();
|
||||||
Songs.clear();
|
Songs.clear();
|
||||||
}
|
}
|
||||||
else if (!Albums.empty() && Albums.hasCoords(me.x, me.y))
|
else if (Albums.hasCoords(me.x, me.y))
|
||||||
{
|
{
|
||||||
if (!isActiveWindow(Albums))
|
if (!isActiveWindow(Albums))
|
||||||
{
|
{
|
||||||
@@ -524,7 +524,7 @@ void MediaLibrary::mouseButtonPressed(MEVENT me)
|
|||||||
Screen<WindowType>::mouseButtonPressed(me);
|
Screen<WindowType>::mouseButtonPressed(me);
|
||||||
Songs.clear();
|
Songs.clear();
|
||||||
}
|
}
|
||||||
else if (!Songs.empty() && Songs.hasCoords(me.x, me.y))
|
else if (Songs.hasCoords(me.x, me.y))
|
||||||
{
|
{
|
||||||
if (!tryNextColumn() || !tryNextColumn())
|
if (!tryNextColumn() || !tryNextColumn())
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ int PlaylistEditor::windowTimeout()
|
|||||||
|
|
||||||
void PlaylistEditor::mouseButtonPressed(MEVENT me)
|
void PlaylistEditor::mouseButtonPressed(MEVENT me)
|
||||||
{
|
{
|
||||||
if (!Playlists.empty() && Playlists.hasCoords(me.x, me.y))
|
if (Playlists.hasCoords(me.x, me.y))
|
||||||
{
|
{
|
||||||
if (!isActiveWindow(Playlists))
|
if (!isActiveWindow(Playlists))
|
||||||
{
|
{
|
||||||
@@ -246,7 +246,7 @@ void PlaylistEditor::mouseButtonPressed(MEVENT me)
|
|||||||
Screen<WindowType>::mouseButtonPressed(me);
|
Screen<WindowType>::mouseButtonPressed(me);
|
||||||
Content.clear();
|
Content.clear();
|
||||||
}
|
}
|
||||||
else if (!Content.empty() && Content.hasCoords(me.x, me.y))
|
else if (Content.hasCoords(me.x, me.y))
|
||||||
{
|
{
|
||||||
if (!isActiveWindow(Content))
|
if (!isActiveWindow(Content))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user