diff --git a/include/TransportButton.h b/include/TransportButton.h index 34615dbbe6b..2258671e4a8 100644 --- a/include/TransportButton.h +++ b/include/TransportButton.h @@ -20,6 +20,6 @@ class LMMS_EXPORT TransportButton : public AutomatableButton void contextMenuEvent( QContextMenuEvent * _me ) override; } ; -} +} // namespace lmms::gui #endif // TRANSPORTBUTTON_H diff --git a/src/gui/widgets/TransportButton.cpp b/src/gui/widgets/TransportButton.cpp index aabfce15f94..3852b757e2e 100644 --- a/src/gui/widgets/TransportButton.cpp +++ b/src/gui/widgets/TransportButton.cpp @@ -19,10 +19,6 @@ TransportButton::TransportButton(QWidget * _parent, const QString & _name) : void TransportButton::mousePressEvent(QMouseEvent * _me) { - if (_me->button() == Qt::LeftButton) - { - toggle(); - } QPushButton::mousePressEvent(_me); } @@ -76,4 +72,4 @@ void TransportButton::contextMenuEvent(QContextMenuEvent * _me) contextMenu.exec(QCursor::pos()); } -} +} // namespace lmms::gui