Commit 70263315 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Fixed setting primary clipboard when selection changes in Compile Output

Was not calling the superclass method for mouseReleasedEvent, and when
it did it would even call mousePressEvent instead.

Reviewed-by: dt
parent cacb0db0
...@@ -543,16 +543,16 @@ void OutputWindow::mouseReleaseEvent(QMouseEvent *e) ...@@ -543,16 +543,16 @@ void OutputWindow::mouseReleaseEvent(QMouseEvent *e)
{ {
m_mousePressed = false; m_mousePressed = false;
if (!m_linksActive) { if (m_linksActive) {
// Mouse was released, activate links again const QString href = anchorAt(e->pos());
m_linksActive = true; if (m_formatter)
return; m_formatter->handleLink(href);
} }
const QString href = anchorAt(e->pos()); // Mouse was released, activate links again
if (m_formatter) m_linksActive = true;
m_formatter->handleLink(href);
QPlainTextEdit::mousePressEvent(e); QPlainTextEdit::mouseReleaseEvent(e);
} }
void OutputWindow::mouseMoveEvent(QMouseEvent *e) void OutputWindow::mouseMoveEvent(QMouseEvent *e)
......
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