Skip to content

Commit

Permalink
Outlook/CalendarView: be sure to distinguish between an actual time s…
Browse files Browse the repository at this point in the history
…lot and a journal entry, as COM erro is thrown when entering journal folder. re #4305

In report focus method for calendar view, the method assumes that the user wishes to hear time slots. This may not be the case for all objects claiming to be calendar view, such as journal entries. Thus catch this case for journal. This prevents error tones from being heard when switching to Journal in Outlook 2013 (may apply to Outlook 2010).
  • Loading branch information
josephsl committed Jul 18, 2014
1 parent 2089790 commit 14fef6b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/appModules/outlook.py
Expand Up @@ -340,8 +340,11 @@ def reportFocus(self):
speech.speakMessage("Appointment %s, %s"%(p.subject,t))
else:
v=e.currentView
selectedStartTime=v.selectedStartTime
selectedEndTime=v.selectedEndTime
try:
selectedStartTime=v.selectedStartTime
selectedEndTime=v.selectedEndTime
except COMError:
return super(CalendarView,self).reportFocus()
timeSlotText=self._generateTimeRangeText(selectedStartTime,selectedEndTime)
startLimit=u"%s %s"%(winKernel.GetDateFormat(winKernel.LOCALE_USER_DEFAULT, winKernel.DATE_LONGDATE, selectedStartTime, None),winKernel.GetTimeFormat(winKernel.LOCALE_USER_DEFAULT, winKernel.TIME_NOSECONDS, selectedStartTime, None))
endLimit=u"%s %s"%(winKernel.GetDateFormat(winKernel.LOCALE_USER_DEFAULT, winKernel.DATE_LONGDATE, selectedEndTime, None),winKernel.GetTimeFormat(winKernel.LOCALE_USER_DEFAULT, winKernel.TIME_NOSECONDS, selectedEndTime, None))
Expand Down

0 comments on commit 14fef6b

Please sign in to comment.