summaryrefslogtreecommitdiff
path: root/src/plugins/help/openpagesmanager.cpp
diff options
context:
space:
mode:
authorkh1 <qt-info@nokia.com>2010-03-31 13:14:16 +0200
committerkh1 <qt-info@nokia.com>2010-03-31 13:15:27 +0200
commit9c0478c390c9a422bd89ed949bf5ee0e8b989c3e (patch)
tree1ea4fc2fe00aa2fa6274769c854a0cf03aefe987 /src/plugins/help/openpagesmanager.cpp
parentb40bdf8a3d981987dbc377e6a1234c46493270e5 (diff)
downloadqt-creator-9c0478c390c9a422bd89ed949bf5ee0e8b989c3e.tar.gz
Fix typo and code leftover.
Diffstat (limited to 'src/plugins/help/openpagesmanager.cpp')
-rw-r--r--src/plugins/help/openpagesmanager.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/help/openpagesmanager.cpp b/src/plugins/help/openpagesmanager.cpp
index d56a1853e5..9da1855916 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
}