diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2018-03-04 16:39:06 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2018-03-04 16:39:06 +0000 |
| commit | 3759bb9d3b7fbe8aa7e20b8c60c0d9bf24dfd680 (patch) | |
| tree | 07eb56c26d190cae0bd713f657e88d6f6a4e8153 /src/plugins/Ui/skinned | |
| parent | 6d77cedd60c6100a04088136ab0a19717ab784a9 (diff) | |
| download | qmmp-3759bb9d3b7fbe8aa7e20b8c60c0d9bf24dfd680.tar.gz qmmp-3759bb9d3b7fbe8aa7e20b8c60c0d9bf24dfd680.tar.bz2 qmmp-3759bb9d3b7fbe8aa7e20b8c60c0d9bf24dfd680.zip | |
skinned: fixed playlist moving issue
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7865 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Ui/skinned')
| -rw-r--r-- | src/plugins/Ui/skinned/playlistselector.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/Ui/skinned/playlistselector.cpp b/src/plugins/Ui/skinned/playlistselector.cpp index 4ebac2cda..f0fb9a6b3 100644 --- a/src/plugins/Ui/skinned/playlistselector.cpp +++ b/src/plugins/Ui/skinned/playlistselector.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2009-2015 by Ilya Kotov * + * Copyright (C) 2009-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -202,6 +202,7 @@ void PlayListSelector::mousePressEvent (QMouseEvent *e) } bool selected = false; + m_moving = false; int index = findPlayList(e->pos()); if(index != -1) { @@ -215,17 +216,15 @@ void PlayListSelector::mousePressEvent (QMouseEvent *e) if(e->button() == Qt::RightButton) { - m_moving = false; update(); m_menu->exec(e->globalPos()); return; } else if(e->button() == Qt::MidButton && selected) { - m_moving = false; m_pl_manager->removePlayList(m_pl_manager->selectedPlayList()); } - else if(e->button() == Qt::LeftButton) + else if(e->button() == Qt::LeftButton && selected) { m_moving = true; m_mouse_pos = e->pos(); |
