summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/oxygen/datawidgetui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/oxygen/datawidgetui.cpp b/noncore/apps/oxygen/datawidgetui.cpp
index 422b6f8..60cefd5 100644
--- a/noncore/apps/oxygen/datawidgetui.cpp
+++ b/noncore/apps/oxygen/datawidgetui.cpp
@@ -30,13 +30,13 @@ dataWidgetUI::dataWidgetUI() : QWidget()
30 this->setCaption( tr( "Chemical Data" )); 30 this->setCaption( tr( "Chemical Data" ));
31 QGridLayout *qgrid = new QGridLayout( this, 2,1 ); 31 QGridLayout *qgrid = new QGridLayout( this, 2,1 );
32 32
33 dataCombo = new QComboBox( this ); 33 dataCombo = new QComboBox( this );
34 34
35 //read in all names of the 118 elements 35 //read in all names of the 118 elements
36 Config configobj( "oxygendata" ); 36 Config configobj( QPEApplication::qpeDir() +"share/oxygen/oxygendata", Config::File );
37 for ( int i = 1 ; i < 119 ; i++ ) 37 for ( int i = 1 ; i < 119 ; i++ )
38 { 38 {
39 configobj.setGroup( QString::number( i ) ); 39 configobj.setGroup( QString::number( i ) );
40 QString foo = configobj.readEntry( "Name" ); 40 QString foo = configobj.readEntry( "Name" );
41 dataCombo->insertItem( foo ); 41 dataCombo->insertItem( foo );
42 } 42 }