Commit eb9779b2 authored by Kevin Funk's avatar Kevin Funk
Browse files

statusbarlabel: Only allow to toggle via LMB

Doesn't make sense to allow it using the right mouse button
parent e30cdaa1
Pipeline #59810 passed with stage
in 39 minutes and 24 seconds
......@@ -6,6 +6,7 @@
#include "statusbarlabeltoggledstate.h"
#include "messagecomposer_debug.h"
#include <QMouseEvent>
using namespace MessageComposer;
StatusBarLabelToggledState::StatusBarLabelToggledState(QWidget *parent)
: QLabel(parent)
......@@ -53,5 +54,7 @@ void StatusBarLabelToggledState::updateLabel()
void StatusBarLabelToggledState::mousePressEvent(QMouseEvent *ev)
{
Q_UNUSED(ev)
setToggleMode(!mToggleMode);
if (ev->button() == Qt::LeftButton) {
setToggleMode(!mToggleMode);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment