[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdetoys/kweather
From: Nadeem Hasan <nhasan () nadmm ! com>
Date: 2004-08-14 21:43:42
Message-ID: 20040814214342.175A599E2 () office ! kde ! org
[Download RAW message or body]
CVS commit by nhasan:
This has been lying for far too long.
M +6 -6 stationdatabase.cpp 1.7
--- kdetoys/kweather/stationdatabase.cpp #1.6:1.7
@@ -50,11 +50,11 @@ bool StationDatabase::loadStation( const
QStringList data = QStringList::split( ";", line, true );
- if ( data[ 0 ] == stationID )
+ if ( data[ 0 ].stripWhiteSpace() == stationID )
{
StationInfo station;
- station.cityName = data[ 3 ];
- station.country = data[ 5 ];
- station.latitude = data[ 7 ];
- station.longitude = data[ 8 ];
+ station.cityName = data[ 3 ].stripWhiteSpace();
+ station.country = data[ 5 ].stripWhiteSpace();
+ station.latitude = data[ 7 ].stripWhiteSpace();
+ station.longitude = data[ 8 ].stripWhiteSpace();
theDB.insert( data[ 0 ], station );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic