diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-10-31 17:31:29 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-10-31 14:58:56 -0700 |
commit | 5bc793b0f060a1ff32c08c6b1dcded09e7102990 (patch) | |
tree | a5e81f3696fa8a12f4f089f99dd4ab6889f9a3c7 /qt-ui/models.cpp | |
parent | 2f60b73bb1dd3fcfe0c98d8cd9400e23572f1418 (diff) | |
download | subsurface-5bc793b0f060a1ff32c08c6b1dcded09e7102990.tar.gz |
Implemented the instance method of LocationFilter
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r-- | qt-ui/models.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index ff6974145..3aeac2c5e 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -2487,7 +2487,8 @@ Qt::ItemFlags LocationFilterModel::flags(const QModelIndex &index) const LocationFilterModel *LocationFilterModel::instance() { - + static LocationFilterModel *self = new LocationFilterModel(); + return self; } void LocationFilterModel::repopulate() |