summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-02-17 16:45:31 (UTC)
committer llornkcor <llornkcor>2002-02-17 16:45:31 (UTC)
commitf47194f17380a4af76d185036eff2dc4d1a44bed (patch) (unidiff)
tree13466a7a8623e73624902ac814b539c990c3e578
parent0f454a59bab0cf9d41e8d778f37c56e9a8a13e72 (diff)
downloadopie-f47194f17380a4af76d185036eff2dc4d1a44bed.zip
opie-f47194f17380a4af76d185036eff2dc4d1a44bed.tar.gz
opie-f47194f17380a4af76d185036eff2dc4d1a44bed.tar.bz2
fixed small bug in desktop version, where conversion dat wasn't being found.
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/tools/calculator/calculatorimpl.cpp4
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
@@ -120,10 +120,10 @@ CalculatorImpl::CalculatorImpl( QWidget * parent, const char * name,
120 // now add in the conversion modes 120 // now add in the conversion modes
121 // when the menu gets done, these should be in a submenu 121 // when the menu gets done, these should be in a submenu
122 QString tmp = QPEApplication::qpeDir(); 122 QString tmp = QPEApplication::qpeDir();
123 tmp += "/etc/unit_conversion.dat"; 123 tmp += "etc/unit_conversion.dat";
124 QFile myfile(tmp); 124 QFile myfile(tmp);
125 if ( !myfile.open( IO_Translate | IO_ReadOnly ) ) { 125 if ( !myfile.open( IO_Translate | IO_ReadOnly ) ) {
126 // QMessageBox::warning(this, "Warning", "Data file\nunit_conversion.dat\nnot found\nNo conversion\nfeatures will\nbe available"); 126 qDebug("Data file unit_conversion.dat not found\nNo conversion features will be available\n"+tmp);
127 // disable the f button if no conv file available 127 // disable the f button if no conv file available
128 ComboBoxFunction->setEnabled(FALSE); 128 ComboBoxFunction->setEnabled(FALSE);
129 } 129 }