summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Braun2010-10-05 15:32:40 +0200
committerSebastien Braun2010-10-05 18:15:52 +0200
commit898c669b978fcebec5a6882c456d302d481f9513 (patch)
treed99b6a469169e621c6ca28fa76eb1661bb083907 /src/gui
parentImplement context menu in pvsmgr[touch] by pressing the Menu key for 5 seconds. (diff)
downloadpvs-898c669b978fcebec5a6882c456d302d481f9513.tar.gz
pvs-898c669b978fcebec5a6882c456d302d481f9513.tar.xz
pvs-898c669b978fcebec5a6882c456d302d481f9513.zip
Bug fix: If there is no VNC thread, do not attempt to rescale mouse position.
Diffstat (limited to 'src/gui')
-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;