diff options
Diffstat (limited to 'qt-models/diveplannermodel.cpp')
-rw-r--r-- | qt-models/diveplannermodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-models/diveplannermodel.cpp b/qt-models/diveplannermodel.cpp index 82aeda388..1d3e3347e 100644 --- a/qt-models/diveplannermodel.cpp +++ b/qt-models/diveplannermodel.cpp @@ -412,8 +412,8 @@ DivePlannerPointsModel::DivePlannerPointsModel(QObject *parent) : QAbstractTable DivePlannerPointsModel *DivePlannerPointsModel::instance() { - static QScopedPointer<DivePlannerPointsModel> self(new DivePlannerPointsModel()); - return self.data(); + static DivePlannerPointsModel self; + return &self; } void DivePlannerPointsModel::emitDataChanged() |