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)
{
m_mousePressed = false;
if (!m_linksActive) {
// Mouse was released, activate links again
m_linksActive = true;
return;
if (m_linksActive) {
const QString href = anchorAt(e->pos());
if (m_formatter)
m_formatter->handleLink(href);
}
const QString href = anchorAt(e->pos());
if (m_formatter)
m_formatter->handleLink(href);
QPlainTextEdit::mousePressEvent(e);
// Mouse was released, activate links again
m_linksActive = true;
QPlainTextEdit::mouseReleaseEvent(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