summaryrefslogtreecommitdiffstats
path: root/qt-models/models.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/models.cpp')
-rw-r--r--qt-models/models.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-models/models.cpp b/qt-models/models.cpp
index fa9519600..4f4df6425 100644
--- a/qt-models/models.cpp
+++ b/qt-models/models.cpp
@@ -32,8 +32,8 @@ Qt::ItemFlags GasSelectionModel::flags(const QModelIndex &index) const
GasSelectionModel *GasSelectionModel::instance()
{
- static QScopedPointer<GasSelectionModel> self(new GasSelectionModel());
- return self.data();
+ static GasSelectionModel self;
+ return &self;
}
//TODO: Remove this #include here when the issue below is fixed.