[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/krecipes/src/DBBackend
From: Unai Garro <Unai.Garro () ee ! ed ! ac ! uk>
Date: 2003-09-08 10:48:49
[Download RAW message or body]
CVS commit by uga:
Fix compiling error
M +4 -3 literecipedb.cpp 1.4
--- kdenonbeta/krecipes/src/DBBackend/literecipedb.cpp #1.3:1.4
@@ -931,8 +931,9 @@ QString LiteRecipeDB::unitName(int unitI
QString command=QString("SELECT * FROM units WHERE id=%1;").arg(unitID);
QSQLiteResult unitToLoad=database->executeQuery(command);
-if (unitToLoad.getResults()!=QSQLiteResult::Failure)
+if (unitToLoad.getStatus()!=QSQLiteResult::Failure)
{
-if (unitToLoad.next()) // Go to the first record (there should be only one anyway.
- return(unitToLoad.data(0));
+QSQLiteResultRow row=unitToLoad.first();
+if (!unitToLoad.atEnd()) // Go to the first record (there should be only one anyway.
+ return(row.data(0));
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic