jeffdepiazza / WODJournal

https://github.com/jeffdepiazza/WODJournal.git
0 stars 0 forks source link

empty weight and percentage #2

Closed jeffdepiazza closed 10 years ago

jeffdepiazza commented 10 years ago

need to assume 0's for all weight and percentage if empty for all movements

jeffdepiazza commented 10 years ago

Had to edit both the InsertAddChildDialog, and the Edit_Child_Dialog. Before we were coloring the weight/percentage RED and issuing a TOAST with an error in the selection. Now, we don't do anything other than test to see if the entry is a valid integer with a try/catch statement, and if it doesn't work...it will default to the catch statement and will set the weight/percentage to 0.