Commit 9c0478c3 authored by kh1's avatar kh1
Browse files

Fix typo and code leftover.

parent b40bdf8a
......@@ -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
}
Markdown is supported
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