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
This commit is contained in:
Thorbjørn Lindeijer
2010-09-09 15:26:58 +02:00
parent cacb0db0eb
commit 70263315a6

View File

@@ -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)