summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/frame.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/frame.cpp b/src/gui/frame.cpp
index ccc49cb..1b80c3d 100644
--- a/src/gui/frame.cpp
+++ b/src/gui/frame.cpp
@@ -468,6 +468,9 @@ void Frame::mouseMoveEvent(QMouseEvent* event)
QPoint Frame::rescalePosition(QPointF guipos)
{
+ if(!_clientVNCThread)
+ return QPoint();
+
QSize s = size();
QSize t = _clientVNCThread->getSize();
qreal px, py;