OSDN Git Service

Removed dead code
authorRobert Loehning <robert.loehning@nokia.com>
Thu, 20 Oct 2011 16:54:07 +0000 (18:54 +0200)
committerRobert Löhning <robert.loehning@nokia.com>
Fri, 21 Oct 2011 12:09:48 +0000 (14:09 +0200)
Change-Id: I613daecfe47a17622f30d38d4b74dd21949a08ad
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
src/plugins/texteditor/fontsettingspage.cpp

index 6393019..3c80008 100644 (file)
@@ -396,14 +396,7 @@ void FontSettingsPage::updatePointSizes()
 {
     // Update point sizes
     const int oldSize = d_ptr->m_value.fontSize();
-    if (d_ptr->m_ui->sizeComboBox->count()) {
-        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();
-    }
+    d_ptr->m_ui->sizeComboBox->clear();
     const QList<int> sizeLst = pointSizesForSelectedFont();
     int idx = -1;
     int i = 0;