summaryrefslogtreecommitdiffstats
path: root/qt-models/weigthsysteminfomodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models/weigthsysteminfomodel.cpp')
-rw-r--r--qt-models/weigthsysteminfomodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-models/weigthsysteminfomodel.cpp b/qt-models/weigthsysteminfomodel.cpp
index fe912ed32..608a70e56 100644
--- a/qt-models/weigthsysteminfomodel.cpp
+++ b/qt-models/weigthsysteminfomodel.cpp
@@ -6,8 +6,8 @@
WSInfoModel *WSInfoModel::instance()
{
- static QScopedPointer<WSInfoModel> self(new WSInfoModel());
- return self.data();
+ static WSInfoModel self;
+ return &self;
}
bool WSInfoModel::insertRows(int row, int count, const QModelIndex &parent)