From 12428d766f3d721c44a6cfeb8d48fc41f52f35f2 Mon Sep 17 00:00:00 2001 From: csoler Date: Fri, 22 Oct 2010 20:54:32 +0000 Subject: [PATCH] forgot isVisible() test git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3691 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/elastic/graphwidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/retroshare-gui/src/gui/elastic/graphwidget.cpp b/retroshare-gui/src/gui/elastic/graphwidget.cpp index 62d569636..946df3724 100644 --- a/retroshare-gui/src/gui/elastic/graphwidget.cpp +++ b/retroshare-gui/src/gui/elastic/graphwidget.cpp @@ -260,6 +260,9 @@ void GraphWidget::timerEvent(QTimerEvent *event) { Q_UNUSED(event); + if(!isVisible()) + return ; + static const int S = 256 ; static double *forceMap = new double[2*S*S] ;