summaryrefslogtreecommitdiff
path: root/libopie
authorsandman <sandman>2002-06-16 01:27:37 (UTC)
committer sandman <sandman>2002-06-16 01:27:37 (UTC)
commiteb414eb5d393f0f727e833fc8901aef096558997 (patch) (unidiff)
treef4b8d8ac34c7dc1b44dda8d25cd37e3ae1dffa62 /libopie
parente4d3c7c1aab2b54262aafdd655edbc78d21d5ac5 (diff)
downloadopie-eb414eb5d393f0f727e833fc8901aef096558997.zip
opie-eb414eb5d393f0f727e833fc8901aef096558997.tar.gz
opie-eb414eb5d393f0f727e833fc8901aef096558997.tar.bz2
Fixed typo in iPAQ detection routine .. model enum really works now
Diffstat (limited to 'libopie') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/ohwinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie/ohwinfo.cpp b/libopie/ohwinfo.cpp
index ae07c6c..30c47c8 100644
--- a/libopie/ohwinfo.cpp
+++ b/libopie/ohwinfo.cpp
@@ -22,25 +22,25 @@ OHwInfo *OHwInfo::inst ( )
22 } 22 }
23 return inf; 23 return inf;
24} 24}
25 25
26OHwInfo::OHwInfo ( ) 26OHwInfo::OHwInfo ( )
27{ 27{
28 m_data = new OHwInfoData ( ); 28 m_data = new OHwInfoData ( );
29 29
30 QFile f ( "/proc/hal/model" ); 30 QFile f ( "/proc/hal/model" );
31 31
32 if ( f. open ( IO_ReadOnly )) { 32 if ( f. open ( IO_ReadOnly )) {
33 QTextStream ts ( &f ); 33 QTextStream ts ( &f );
34 m_data-> m_modelstr = ts. readLine ( ); 34 m_data-> m_modelstr = "H" + ts. readLine ( );
35 35
36 if ( m_data-> m_modelstr == "H3100" ) 36 if ( m_data-> m_modelstr == "H3100" )
37 m_data-> m_model = OMODEL_iPAQ_H31xx; 37 m_data-> m_model = OMODEL_iPAQ_H31xx;
38 else if ( m_data-> m_modelstr == "H3600" ) 38 else if ( m_data-> m_modelstr == "H3600" )
39 m_data-> m_model = OMODEL_iPAQ_H36xx; 39 m_data-> m_model = OMODEL_iPAQ_H36xx;
40 else if ( m_data-> m_modelstr == "H3700" ) 40 else if ( m_data-> m_modelstr == "H3700" )
41 m_data-> m_model = OMODEL_iPAQ_H37xx; 41 m_data-> m_model = OMODEL_iPAQ_H37xx;
42 else if ( m_data-> m_modelstr == "H3800" ) 42 else if ( m_data-> m_modelstr == "H3800" )
43 m_data-> m_model = OMODEL_iPAQ_H38xx; 43 m_data-> m_model = OMODEL_iPAQ_H38xx;
44 else 44 else
45 m_data-> m_model = OMODEL_Unknown; 45 m_data-> m_model = OMODEL_Unknown;
46 46