diff --git a/PlaylistList.cpp b/PlaylistList.cpp index 52e1f7e..f94de5a 100644 --- a/PlaylistList.cpp +++ b/PlaylistList.cpp @@ -331,7 +331,7 @@ PlaylistList::mousePressEvent (QMouseEvent *event) i = 0; } - if (i > m_items->count ()) { + if (i > (m_items->count () - 1)) { return; }