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:
committed by
craig.p.drummond
parent
9a9b30cf75
commit
94dadc31d9
@@ -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
|
||||
-----
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user