@@ -29,7 +29,7 @@ GenericOptionsModel::GenericOptionsModel(bool showAllOption, QObject *parent)
2929{
3030 if (showAllOption)
3131 {
32− auto showAll = ShowAllFilterOption("TODO", this);
32+ auto showAll = new ShowAllFilterOption(this);
3333 connect(showAll, SIGNAL(activeChanged(bool)), this, SLOT(onOptionChanged()));
3434 connect(showAll, SIGNAL(activeChanged(bool)), this, SLOT(onShowAllClicked(bool)));
3535 addOption(showAll, 0);
@@ -60,7 +60,7 @@ QVariant GenericOptionsModel::data(const QModelIndex& index, int role) const
6060 return QVariant();
6161 }
6262
63− auto filterOption = (m_showAll != nullptr && index.row() == 0) ? m_showAll : m_options[index.row()];
63+ auto filterOption = m_options[index.row()];
6464 switch (role)
6565 {
6666 case GenericOptionsModel::RoleId:
@@ -81,7 +81,7 @@ QVariant GenericOptionsModel::data(const QModelIndex& index, int role) const
8181
8282int GenericOptionsModel::rowCount(const QModelIndex& /* parent */) const
8383{
84− return m_options.size;
84+ return m_options.size();
8585}
8686
8787void GenericOptionsModel::setActive(int idx, bool value)