From 25152c9e8426e1c9ee2ea7dd151e41a325c70bfa Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Fri, 4 Mar 2011 17:20:00 +0000 Subject: fixed playlist selector git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2093 90c681e8-e032-0410-971d-27865f9a5e38 --- src/ui/playlistselector.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ui/playlistselector.cpp b/src/ui/playlistselector.cpp index eaa75b82e..42aeaa45b 100644 --- a/src/ui/playlistselector.cpp +++ b/src/ui/playlistselector.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2009-2010 by Ilya Kotov * + * Copyright (C) 2009-2011 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -43,7 +43,7 @@ PlayListSelector::PlayListSelector(PlayListManager *manager, QWidget *parent) : m_skin = Skin::instance(); m_pl_manager = manager; connect(m_pl_manager, SIGNAL(playListsChanged()), SLOT(updateTabs())); - connect(m_skin, SIGNAL(skinChanged()), this, SLOT(updateSkin())); + connect(m_skin, SIGNAL(skinChanged()), this, SLOT(updateSkin())); loadColors(); readSettings(); updateTabs(); @@ -213,7 +213,7 @@ void PlayListSelector::mouseMoveEvent(QMouseEvent *e) int dest = -1; for(int i = 0; i < m_rects.count(); ++i) { - if(m_rects.at(i).contains(mp)) + if(mp.x() >= m_rects.at(i).x() && mp.x() <= m_rects.at(i).x() + m_rects.at(i).width()) { dest = i; break; -- cgit v1.2.3-13-gbd6f