diff --git a/src/plugins/help/filtersettingspage.cpp b/src/plugins/help/filtersettingspage.cpp index 8577b42960e8a2bedaeaa7bc36de55f960c3425d..ed27e455d15b93fe27590ceed7bd7211932396ab 100644 --- a/src/plugins/help/filtersettingspage.cpp +++ b/src/plugins/help/filtersettingspage.cpp @@ -114,8 +114,10 @@ void FilterSettingsPage::updateFilterPage() foreach (const QString &attribute, attributes) new QTreeWidgetItem(m_ui.attributeWidget, QStringList(attribute)); - if (m_filterMap.keys().count()) + if (m_filterMap.keys().isEmpty()) { m_ui.filterWidget->setCurrentRow(0); + updateAttributes(m_ui.filterWidget->currentItem()); + } } void FilterSettingsPage::updateAttributes(QListWidgetItem *item)