diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-01-17 10:15:41 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-17 14:04:47 -0800 |
commit | 470de7ee07582d00f0d93cbce411a919dd9b1cdc (patch) | |
tree | db2595ac42ca7ad79be6040a47c4567a38ae175d | |
parent | c88ccfae99110332a6f1c78827e454b258ab7a46 (diff) | |
download | subsurface-470de7ee07582d00f0d93cbce411a919dd9b1cdc.tar.gz |
Remove warning about item not on the scene.
This patch fixes a warning about the QGraphicsItems not being on the
QGraphicsScene, and thus, cannot be removed from it.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/profile/profilewidget2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp index d8dad5a84..9708f2bd3 100644 --- a/qt-ui/profile/profilewidget2.cpp +++ b/qt-ui/profile/profilewidget2.cpp @@ -32,8 +32,8 @@ ProfileWidget2::ProfileWidget2(QWidget *parent) : timeAxis(new TimeAxis()), depthController(new DiveRectItem()), timeController(new DiveRectItem()), - diveProfileItem(new DiveProfileItem()), - temperatureItem(new DiveTemperatureItem()), + diveProfileItem(NULL), + temperatureItem(NULL), cartesianPlane(new DiveCartesianPlane()) { setScene(new QGraphicsScene()); |