diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-05-31 14:54:36 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-31 14:57:57 -0700 |
commit | e74914fdd0f439d3584657147c81539d2a863955 (patch) | |
tree | f25f24ffef40210e085733c90632331cf577404b /qt-ui/profile/profilewidget2.h | |
parent | b9946b89fa3663318ac947778dbf701b1e4ebde0 (diff) | |
download | subsurface-e74914fdd0f439d3584657147c81539d2a863955.tar.gz |
Planner: wild guess attempt to fix a crash on Mac
Staring at the stack trace it seems that it gets into an infinite
recursion when trying to recalculate after being alerted to a change on
the ruler. I cannot recreate this here (not on Linux, not on Mac), but
here's a random attempt to prevent the issue: simply refuse to recalculate
the ruler while in Add or Plan mode.
Crude, but might show us if this really is the issue. Otherwise it's easy
enough to revert this change. The qDebug() in there should tell us if
people on a Mac do indeed see this even without moving the ruler around in
Add or Plan mode.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/profilewidget2.h')
-rw-r--r-- | qt-ui/profile/profilewidget2.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/profile/profilewidget2.h b/qt-ui/profile/profilewidget2.h index b1a415eb3..9c7610526 100644 --- a/qt-ui/profile/profilewidget2.h +++ b/qt-ui/profile/profilewidget2.h @@ -72,6 +72,7 @@ public: void setPrintMode(bool mode, bool grayscale = false); bool isPointOutOfBoundaries(const QPointF &point) const; bool isPlanner(); + bool isAddOrPlanner(); State currentState; public |