Dont react to mouse-release event in coverwidget if an override cursor has been set. Fixes the case, with Qt5 builds, where a drag is started on the cover widget causes interface to expand/collapse.

This commit is contained in:
craig.p.drummond
2014-02-07 20:10:18 +00:00
committed by craig.p.drummond
parent 9a9b30cf75
commit 94dadc31d9
2 changed files with 5 additions and 2 deletions

View File

@@ -118,6 +118,9 @@
71. Remove 'copy track info' functionality, I see no need for this!
72. Remove showPage dbus function.
73. Use wmctrl for Qt5 builds, to raise window under compiz.
74. Dont react to mouse-release event in coverwidget if an override cursor has
been set. Fixes the case, with Qt5 builds, where a drag is started on the
cover widget causes interface to expand/collapse.
1.2.2
-----

View File

@@ -34,7 +34,7 @@
#include <QFile>
#include <QTimer>
#include <QVariant>
#include <QCoreApplication>
#include <QApplication>
#include <QFile>
static QString encode(const QImage &img)
@@ -300,7 +300,7 @@ bool CoverWidget::event(QEvent *event)
}
break;
case QEvent::MouseButtonRelease:
if (pressed && Qt::LeftButton==static_cast<QMouseEvent *>(event)->button()) {
if (pressed && Qt::LeftButton==static_cast<QMouseEvent *>(event)->button() && !QApplication::overrideCursor()) {
emit clicked();
}
pressed=false;