equal
deleted
inserted
replaced
380 } else { |
380 } else { |
381 OstTraceFunctionExit0( DUP2_CALENEDITORDATAHANDLER_SHOULDSAVEORDELETEORDONOTHING_EXIT ); |
381 OstTraceFunctionExit0( DUP2_CALENEDITORDATAHANDLER_SHOULDSAVEORDELETEORDONOTHING_EXIT ); |
382 return CalenEditorPrivate::ActionSave; |
382 return CalenEditorPrivate::ActionSave; |
383 } |
383 } |
384 } |
384 } |
385 if (areTextItemsCleared() && !nonTextItemsEdited()) { |
|
386 // ***** edited entry + text items emptied + non-text items not edited |
|
387 // Even if user may have edited non-text fields, |
|
388 // delete the note |
|
389 OstTraceFunctionExit0( DUP3_CALENEDITORDATAHANDLER_SHOULDSAVEORDELETEORDONOTHING_EXIT ); |
|
390 return CalenEditorPrivate::ActionDelete; |
|
391 } |
|
392 // Save the note, since the text fields contain something |
385 // Save the note, since the text fields contain something |
393 OstTraceFunctionExit0( DUP4_CALENEDITORDATAHANDLER_SHOULDSAVEORDELETEORDONOTHING_EXIT ); |
386 OstTraceFunctionExit0( DUP4_CALENEDITORDATAHANDLER_SHOULDSAVEORDELETEORDONOTHING_EXIT ); |
394 return CalenEditorPrivate::ActionSave; |
387 return CalenEditorPrivate::ActionSave; |
395 } |
388 } |
396 |
389 |