Commit c9366753 authored by Paul Tvete's avatar Paul Tvete
Browse files

Fix crash on exit

parent b5525a5b
......@@ -101,9 +101,10 @@ void QVncItem::geometryChange(const QRectF &newGeometry, const QRectF &oldGeomet
bool QVncItem::eventFilter(QObject *, QEvent *event)
{
if (event->type() == QEvent::CursorChange) {
qDebug() << "Cursor change!" << window()->cursor();
if (m_vncServer) {
auto newCursor = window()->cursor();
QWindow *w = window();
if (w && m_vncServer) {
//qDebug() << "Cursor change!" << w->cursor();
auto newCursor = w->cursor();
m_vncServer->setCursor(&newCursor);
}
}
......
Supports Markdown
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