equal
deleted
inserted
replaced
417 isExitForm = SaveNoteL(aButtonId); |
417 isExitForm = SaveNoteL(aButtonId); |
418 if(isExitForm) |
418 if(isExitForm) |
419 { |
419 { |
420 iMultipleDbUi.UpdateOnAddOrEditL(!iEditFlag); |
420 iMultipleDbUi.UpdateOnAddOrEditL(!iEditFlag); |
421 } |
421 } |
|
422 isExitForm = ETrue; |
422 iMultipleDbUi.ExitDialogL(); |
423 iMultipleDbUi.ExitDialogL(); |
423 } |
424 } |
424 break; |
425 break; |
425 case EAknSoftkeyQuit: |
426 case EAknSoftkeyQuit: |
426 { |
427 { |
750 if( IsNameEditedL( *iCalendarName ) ) |
751 if( IsNameEditedL( *iCalendarName ) ) |
751 { |
752 { |
752 TInt index = calendarInfoList.Find( *iCalendarName,CCalenMultiDBEditor::CalenInfoIdentifierL ); |
753 TInt index = calendarInfoList.Find( *iCalendarName,CCalenMultiDBEditor::CalenInfoIdentifierL ); |
753 if(index != KErrNotFound) |
754 if(index != KErrNotFound) |
754 { |
755 { |
|
756 retValue = EFalse; |
755 if( EAknCmdExit != aButtonId ) |
757 if( EAknCmdExit != aButtonId ) |
756 { |
758 { |
757 retValue = EFalse; |
759 HBufC* infoText = StringLoader::LoadLC( |
758 HBufC* infoText = StringLoader::LoadLC( |
760 R_QTN_CALE_DB_ALREADY_EXISTS_NOTE , iCalendarName->Des() ); |
759 R_QTN_CALE_DB_ALREADY_EXISTS_NOTE , iCalendarName->Des() ); |
761 CAknInformationNote* dialog = new( ELeave ) CAknInformationNote(ETrue); |
760 CAknInformationNote* dialog = new( ELeave ) CAknInformationNote(ETrue); |
762 dialog->ExecuteLD( *infoText ); |
761 dialog->ExecuteLD( *infoText ); |
763 CleanupStack::PopAndDestroy( infoText ); |
762 CleanupStack::PopAndDestroy( infoText ); |
764 } |
763 } |
|
764 } |
765 } |
765 else |
766 else |
766 { |
767 { |
767 iCalendarInfo.SetNameL(*iCalendarName); |
768 iCalendarInfo.SetNameL(*iCalendarName); |
768 } |
769 } |
771 } |
772 } |
772 else |
773 else |
773 { |
774 { |
774 if( EAknCmdExit != aButtonId ) |
775 if( EAknCmdExit != aButtonId ) |
775 { |
776 { |
776 retValue = EFalse; |
777 retValue = EFalse; |
777 HBufC* infoText(NULL); |
778 HBufC* infoText(NULL); |
778 infoText = AreIllegalChars( *iCalendarName ) ? StringLoader::LoadLC( R_CALEN_ILLEGAL_CHARACTERS ) : |
779 infoText = AreIllegalChars( *iCalendarName ) ? StringLoader::LoadLC( R_CALEN_ILLEGAL_CHARACTERS ) : |
779 StringLoader::LoadLC( R_CALEN_BAD_FILE_NAME ); |
780 StringLoader::LoadLC( R_CALEN_BAD_FILE_NAME ); |
780 CAknInformationNote* dialog = new( ELeave ) CAknInformationNote(ETrue); |
781 CAknInformationNote* dialog = new( ELeave ) CAknInformationNote(ETrue); |
781 dialog->ExecuteLD( *infoText ); |
782 dialog->ExecuteLD( *infoText ); |
782 CleanupStack::PopAndDestroy( infoText ); |
783 CleanupStack::PopAndDestroy( infoText ); |
783 } |
784 } |
784 } |
785 } |
785 |
786 |
786 |
787 |
787 if(IsColorEditedL( iColVal ) ) |
788 if(IsColorEditedL( iColVal ) ) |