aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2011-03-04 17:20:00 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2011-03-04 17:20:00 +0000
commit25152c9e8426e1c9ee2ea7dd151e41a325c70bfa (patch)
treed41d1769ffcd5646ee1e303e52fd208f949eb9d9
parent223756476993ffeeeeaab6402dbd9cac3abfe1d1 (diff)
downloadqmmp-25152c9e8426e1c9ee2ea7dd151e41a325c70bfa.tar.gz
qmmp-25152c9e8426e1c9ee2ea7dd151e41a325c70bfa.tar.bz2
qmmp-25152c9e8426e1c9ee2ea7dd151e41a325c70bfa.zip
fixed playlist selector
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2093 90c681e8-e032-0410-971d-27865f9a5e38
-rw-r--r--src/ui/playlistselector.cpp6
1 files changed, 3 insertions, 3 deletions
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;