summaryrefslogtreecommitdiff
path: root/src/playlist_editor.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2012-09-13 17:46:35 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2012-09-13 17:46:35 +0200
commit31b06470d1621d9568ffe42606ce2f6d6f471855 (patch)
treebd40d9d29e684272d7146d56e2a481ef62bd9591 /src/playlist_editor.cpp
parent382e4c0177d8b7ba72df5ac8a57b0114609e790c (diff)
check properly in MouseButtonPressed if switching columns is allowed
Diffstat (limited to 'src/playlist_editor.cpp')
-rw-r--r--src/playlist_editor.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/playlist_editor.cpp b/src/playlist_editor.cpp
index 5db14da4..effc3601 100644
--- a/src/playlist_editor.cpp
+++ b/src/playlist_editor.cpp
@@ -327,7 +327,12 @@ void PlaylistEditor::MouseButtonPressed(MEVENT me)
if (!Playlists->empty() && Playlists->hasCoords(me.x, me.y))
{
if (w != Playlists)
- PrevColumn();
+ {
+ if (isPrevColumnAvailable())
+ PrevColumn();
+ else
+ return;
+ }
if (size_t(me.y) < Playlists->size() && (me.bstate & (BUTTON1_PRESSED | BUTTON3_PRESSED)))
{
Playlists->Goto(me.y);
@@ -346,7 +351,12 @@ void PlaylistEditor::MouseButtonPressed(MEVENT me)
else if (!Content->empty() && Content->hasCoords(me.x, me.y))
{
if (w != Content)
- NextColumn();
+ {
+ if (isNextColumnAvailable())
+ NextColumn();
+ else
+ return;
+ }
if (size_t(me.y) < Content->size() && (me.bstate & (BUTTON1_PRESSED | BUTTON3_PRESSED)))
{
Content->Goto(me.y);