small fix.
This commit is contained in:
parent
4ddd2563b4
commit
9b9c1c2323
@ -128,50 +128,9 @@ public class Start
|
|||||||
DatabaseHandler.getInstance().disconnect();
|
DatabaseHandler.getInstance().disconnect();
|
||||||
System.exit(0);
|
System.exit(0);
|
||||||
}
|
}
|
||||||
exitWithError(Settings.languageBlock.get("productNotFound") + " " + productName);
|
else
|
||||||
|
exitWithError(Settings.languageBlock.get("couldNotRemoveProdFromList") + " " + entry.toString());
|
||||||
|
|
||||||
// for(ShoppingListEntry entry : list.getEntries())
|
|
||||||
// {
|
|
||||||
// if(entry.getProduct().equals(p))
|
|
||||||
// {
|
|
||||||
// if(entry.delete())
|
|
||||||
// {
|
|
||||||
// DatabaseHandler.getInstance().disconnect();
|
|
||||||
// System.exit(0);
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// Miscellaneous.logEvent(Settings.languageBlock.get("couldNotRemoveProdFromList") + " " + productName, 2);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// exitWithError(Settings.languageBlock.get("couldNotRemoveProdFromList") + " " + entry.toString());
|
|
||||||
|
|
||||||
// for(ShoppingListEntry entry : list.getEntries())
|
|
||||||
// {
|
|
||||||
// if(entry.getProduct().equals(p))
|
|
||||||
// {
|
|
||||||
// if(amount > 0 && u != null && !u.isDummy())
|
|
||||||
// {
|
|
||||||
// /*
|
|
||||||
// * Amount and unit specified. Adjust entries that may exist.
|
|
||||||
// */
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// /*
|
|
||||||
// * No amount unit or unit specified. Delete all existing entries
|
|
||||||
// * of that product from the list.
|
|
||||||
// */
|
|
||||||
// if(entry.delete())
|
|
||||||
// {
|
|
||||||
// DatabaseHandler.getInstance().disconnect();
|
|
||||||
// System.exit(0);
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// Miscellaneous.logEvent(Settings.languageBlock.get("couldNotRemoveProdFromList") + " " + productName, 2);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// If it wasn't on the list - why care?
|
// If it wasn't on the list - why care?
|
||||||
DatabaseHandler.getInstance().disconnect();
|
DatabaseHandler.getInstance().disconnect();
|
||||||
System.exit(0);
|
System.exit(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user