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

List:       kde-commits
Subject:    kdenonbeta/krecipes/src/dialogs
From:       Unai Garro <ugarro () telefonica ! net>
Date:       2004-03-25 22:15:09
Message-ID: 20040325221509.4E2BE997E () office ! kde ! org
[Download RAW message or body]

CVS commit by uga: 

Make "Any" option work again


  M +7 -5      ingredientmatcherdialog.cpp   1.10


--- kdenonbeta/krecipes/src/dialogs/ingredientmatcherdialog.cpp  #1.9:1.10
@@ -21,5 +21,4 @@
 #include <klocale.h>
 
-#include <iostream>
 IngredientMatcherDialog::IngredientMatcherDialog(QWidget *parent,RecipeDB \
*db):QVBox(parent)  {
@@ -140,11 +139,13 @@ void IngredientMatcherDialog::findRecipe
         
         if (missingNumberCombo->currentItem()!=4) \
                missingNoAllowed=missingNumberCombo->currentText().toInt(); //"1..3"
-        else missingNoAllowed=-1; // "Any"
+        else  // "Any"
+                {
+                missingNoAllowed=0;
+                for (nit=missingNumbers.begin();nit!=missingNumbers.end();++nit) if \
((*nit)>missingNoAllowed) missingNoAllowed=(*nit); +                }
         
-        std::cerr<<"missingNoAllowed: "<<missingNoAllowed<<"\n";
         
         for (int missingNo=1; missingNo<=missingNoAllowed; missingNo++)
         {
-                std::cerr<<"missingNo: "<<missingNo<<"\n";
                 nit=missingNumbers.begin();
                 bool titleShownYet=false;
@@ -152,5 +153,4 @@ void IngredientMatcherDialog::findRecipe
                 for \
(it=incompleteRecipes.begin();it!=incompleteRecipes.end();++it,++nit)  {
-                std::cerr<<"*nit: "<<*nit<<"missingNo:"<<missingNo<<"\n";
                         if ((*nit)==missingNo) 
                                 {       
@@ -165,4 +165,6 @@ void IngredientMatcherDialog::findRecipe
         }
         
+        
+        
 }
 


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

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