equal
deleted
inserted
replaced
842 |
842 |
843 TInt alarmCount = iAlarmArray->MdcaCount(); |
843 TInt alarmCount = iAlarmArray->MdcaCount(); |
844 TBool deleteRemoveSnooze( EFalse ); |
844 TBool deleteRemoveSnooze( EFalse ); |
845 |
845 |
846 // There are no alarms set |
846 // There are no alarms set |
847 if( KZeroAlarms >= alarmCount ) |
847 if( KZeroAlarms >= alarmCount || iContainer->IsNewAlaramButtonFocused() ) |
848 { |
848 { |
849 // There are no alarms set. Remove the irrelevant options from the menu. |
849 // There are no alarms set. Remove the irrelevant options from the menu. |
850 aMenuPane->DeleteMenuItem( EClockResetAlarm ); |
850 aMenuPane->DeleteMenuItem( EClockResetAlarm ); |
851 aMenuPane->DeleteMenuItem( EClockRemoveAlarm ); |
851 aMenuPane->DeleteMenuItem( EClockRemoveAlarm ); |
852 aMenuPane->DeleteMenuItem( EClockActivateAlarm ); |
852 aMenuPane->DeleteMenuItem( EClockActivateAlarm ); |