Commit 128fc7e6 authored by Nikita Sirgienko's avatar Nikita Sirgienko
Browse files

Fix problem with first click in loaded worksheet

parent 3cf30183
......@@ -1682,6 +1682,7 @@ void Worksheet::mousePressEvent(QGraphicsSceneMouseEvent* event)
event->scenePos().y() > lastEntry()->y() + lastEntry()->size().height())
lastEntry()->focusEntry(WorksheetTextItem::BottomRight);
*/
QGraphicsScene::mousePressEvent(event);
if (!m_readOnly && event->buttons() & Qt::LeftButton)
{
......@@ -1732,7 +1733,6 @@ void Worksheet::mousePressEvent(QGraphicsSceneMouseEvent* event)
updateEntryCursor(event);
}
}
QGraphicsScene::mousePressEvent(event);
}
void Worksheet::keyPressEvent(QKeyEvent *keyEvent)
......
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