forked from qt-creator/qt-creator
Terminal: Fix nullopt access
Fixes: QTCREATORBUG-30144 Change-Id: I9479d4cbfd8f930f405409c1c3f5252d23cca2da Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -1073,7 +1073,7 @@ void TerminalView::mousePressEvent(QMouseEvent *event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (event->button() == Qt::LeftButton) {
|
if (event->button() == Qt::LeftButton) {
|
||||||
if (std::chrono::system_clock::now() - d->m_lastDoubleClick < 500ms) {
|
if (d->m_selection && std::chrono::system_clock::now() - d->m_lastDoubleClick < 500ms) {
|
||||||
d->m_selectLineMode = true;
|
d->m_selectLineMode = true;
|
||||||
const Selection newSelection{d->m_surface->gridToPos(
|
const Selection newSelection{d->m_surface->gridToPos(
|
||||||
{0,
|
{0,
|
||||||
|
Reference in New Issue
Block a user