[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-11-07 1:49:46
[Download RAW message or body]

CVS commit by uga: 

load the amounts too when the full list of ingredients' properties are requested


  M +1 -1      literecipedb.cpp   1.60
  M +1 -1      mysqlrecipedb.cpp   1.40


--- kdenonbeta/krecipes/src/DBBackend/literecipedb.cpp  #1.59:1.60
@@ -803,5 +803,5 @@ if (propertiesToLoad.getStatus()!=QSQLit
                     }
 
-                    if (ingredientID>=0)
+                    if (ingredientID>=-1)
                       prop.amount=row.data(5).toDouble();
                     else

--- kdenonbeta/krecipes/src/DBBackend/mysqlrecipedb.cpp  #1.39:1.40
@@ -771,5 +771,5 @@ if ( propertiesToLoad.isActive() ) {
                     }
 
-                    if (ingredientID>=0)
+                    if (ingredientID>=-1)
                       prop.amount=propertiesToLoad.value(5).toDouble();
                     else


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic