author | llornkcor <llornkcor> | 2002-02-17 16:45:31 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-02-17 16:45:31 (UTC) |
commit | f47194f17380a4af76d185036eff2dc4d1a44bed (patch) (side-by-side diff) | |
tree | 13466a7a8623e73624902ac814b539c990c3e578 | |
parent | 0f454a59bab0cf9d41e8d778f37c56e9a8a13e72 (diff) | |
download | opie-f47194f17380a4af76d185036eff2dc4d1a44bed.zip opie-f47194f17380a4af76d185036eff2dc4d1a44bed.tar.gz opie-f47194f17380a4af76d185036eff2dc4d1a44bed.tar.bz2 |
fixed small bug in desktop version, where conversion dat wasn't being found.
-rw-r--r-- | noncore/tools/calculator/calculatorimpl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/tools/calculator/calculatorimpl.cpp b/noncore/tools/calculator/calculatorimpl.cpp index 1b93c7f..3a6efe4 100644 --- a/noncore/tools/calculator/calculatorimpl.cpp +++ b/noncore/tools/calculator/calculatorimpl.cpp @@ -111,28 +111,28 @@ CalculatorImpl::CalculatorImpl( QWidget * parent, const char * name, } connect( &bgr_function, SIGNAL(clicked(int) ) , this, SLOT(do_convert(int) ) ); connect( &bgr_function, SIGNAL(clicked(int) ) , this, SLOT(std_funcs (int) ) ); connect(ComboBoxFunction, SIGNAL(activated(int) ), this, SLOT(function_button(int) ) ); captions.append("Standard"); ComboBoxFunction->insertItem(captions.last()); // now add in the conversion modes // when the menu gets done, these should be in a submenu QString tmp = QPEApplication::qpeDir(); - tmp += "/etc/unit_conversion.dat"; + tmp += "etc/unit_conversion.dat"; QFile myfile(tmp); if ( !myfile.open( IO_Translate | IO_ReadOnly ) ) { - // QMessageBox::warning(this, "Warning", "Data file\nunit_conversion.dat\nnot found\nNo conversion\nfeatures will\nbe available"); + qDebug("Data file unit_conversion.dat not found\nNo conversion features will be available\n"+tmp); // disable the f button if no conv file available ComboBoxFunction->setEnabled(FALSE); } else { QString line, line2; QTextStream ts(&myfile); // first pass, see how many conversion types there are in order to allocate for them while ( ! ts.eof() ) { line = ts.readLine(); if ( line.contains ("STARTTYPE" ) ) conversion_mode_count++; |