Diffstat (limited to 'noncore/apps/oxygen/datawidgetui.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/oxygen/datawidgetui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/apps/oxygen/datawidgetui.cpp b/noncore/apps/oxygen/datawidgetui.cpp index e28ee4d..91d669f 100644 --- a/noncore/apps/oxygen/datawidgetui.cpp +++ b/noncore/apps/oxygen/datawidgetui.cpp | |||
@@ -44,5 +44,5 @@ dataWidgetUI::dataWidgetUI() : QWidget() | |||
44 | dataCombo->insertItem( QString::number( i+1 )+" - "+*it ); | 44 | dataCombo->insertItem( QString::number( i+1 )+" - "+*it ); |
45 | } | 45 | } |
46 | 46 | QStringList::ConstIterator it = names.begin(); | |
47 | OxydataWidget *oxyDW = new OxydataWidget(this, "OxydataWidget_oxyDW", names); | 47 | OxydataWidget *oxyDW = new OxydataWidget(this, "OxydataWidget_oxyDW", names); |
48 | connect ( dataCombo, SIGNAL( activated(int) ), oxyDW, SLOT( setElement(int) ) ); | 48 | connect ( dataCombo, SIGNAL( activated(int) ), oxyDW, SLOT( setElement(int) ) ); |
@@ -56,4 +56,5 @@ dataWidgetUI::dataWidgetUI() : QWidget() | |||
56 | void dataWidgetUI::loadNames() | 56 | void dataWidgetUI::loadNames() |
57 | { | 57 | { |
58 | names.clear(); | ||
58 | names.append( tr("Hydrogen") ); | 59 | names.append( tr("Hydrogen") ); |
59 | names.append( tr("Helium") ); | 60 | names.append( tr("Helium") ); |