diff options
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 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 |