From e90eac2d38f56662d91e223ef5c0089f9c0a69ee Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Fri, 31 Oct 2014 16:21:33 -0200 Subject: [PATCH] Implemented the instance method for the BuddyFilter Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/models.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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