diff --git a/src/plugins/help/openpagesmanager.cpp b/src/plugins/help/openpagesmanager.cpp index d56a1853e540e998f36704d9245ac0fa061d0fbc..9da18559166ce165c64140635f253f09f2f2f34a 100644 --- a/src/plugins/help/openpagesmanager.cpp +++ b/src/plugins/help/openpagesmanager.cpp @@ -86,8 +86,6 @@ QWidget* OpenPagesManager::openPagesWidget() const QComboBox* OpenPagesManager::openPagesComboBox() const { - if (!m_comboBox) { - } return m_comboBox; } @@ -192,7 +190,7 @@ void OpenPagesManager::setCurrentPage(int index) m_comboBox->setCurrentIndex(index); CentralWidget::instance()->setCurrentPage(m_model->pageAt(index)); - selectCurrentPage(); // update the selction inside the tree view + selectCurrentPage(); // update the selection inside the tree view } void OpenPagesManager::setCurrentPage(const QModelIndex &index) @@ -252,5 +250,5 @@ void OpenPagesManager::removePage(int index) CentralWidget::instance()->removePage(index); emit pagesChanged(); - selectCurrentPage(); // update the selction inside the tree view + selectCurrentPage(); // update the selection inside the tree view }