summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-10-31 17:31:29 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-31 14:58:56 -0700
commit5bc793b0f060a1ff32c08c6b1dcded09e7102990 (patch)
treea5e81f3696fa8a12f4f089f99dd4ab6889f9a3c7 /qt-ui/models.cpp
parent2f60b73bb1dd3fcfe0c98d8cd9400e23572f1418 (diff)
downloadsubsurface-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.cpp3
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()