forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user