Commit a33fc9ae authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix mem leak

parent 2ba36d8e
......@@ -63,7 +63,7 @@ ContactsManager::ContactsManager(QObject *parent)
: QObject(parent)
{
auto model = new ContactsModel(this);
m_model = new QSortFilterProxyModel;
m_model = new QSortFilterProxyModel(this);
m_model->setSourceModel(model);
m_model->setDynamicSortFilter(true);
m_model->setSortCaseSensitivity(Qt::CaseInsensitive);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment