diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-10-31 16:21:33 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-10-31 14:58:55 -0700 |
commit | e90eac2d38f56662d91e223ef5c0089f9c0a69ee (patch) | |
tree | d0ad9f76550553ffed6242b2b67d060175bd6535 /qt-ui | |
parent | 2c924b6834d7c032cfec5d6205447333780124e0 (diff) | |
download | subsurface-e90eac2d38f56662d91e223ef5c0089f9c0a69ee.tar.gz |
Implemented the instance method for the BuddyFilter
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-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 2e78f1b43..dca8d747b 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -2358,7 +2358,8 @@ BuddyFilterModel::BuddyFilterModel(QObject *parent) BuddyFilterModel *BuddyFilterModel::instance() { - + static BuddyFilterModel *self = new BuddyFilterModel(); + return self; } bool BuddyFilterModel::filterRow(int source_row, const QModelIndex &source_parent, QAbstractItemModel *sourceModel) const |