Removed dead code

Change-Id: I613daecfe47a17622f30d38d4b74dd21949a08ad
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
This commit is contained in:
Robert Loehning
2011-10-20 18:54:07 +02:00
committed by Robert Löhning
parent f3753e504f
commit 554af4e81a

View File

@@ -396,14 +396,7 @@ void FontSettingsPage::updatePointSizes()
{ {
// Update point sizes // Update point sizes
const int oldSize = d_ptr->m_value.fontSize(); const int oldSize = d_ptr->m_value.fontSize();
if (d_ptr->m_ui->sizeComboBox->count()) { d_ptr->m_ui->sizeComboBox->clear();
const QString curSize = d_ptr->m_ui->sizeComboBox->currentText();
bool ok = true;
int oldSize = curSize.toInt(&ok);
if (!ok)
oldSize = d_ptr->m_value.fontSize();
d_ptr->m_ui->sizeComboBox->clear();
}
const QList<int> sizeLst = pointSizesForSelectedFont(); const QList<int> sizeLst = pointSizesForSelectedFont();
int idx = -1; int idx = -1;
int i = 0; int i = 0;