commit/StationPlaylist: josephsl: Track Tally (6.0-dev): When trying to perform track time analysis, check to make sure at least one track is visible.

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Fri, 26 Jun 2015 17:04:39 -0000

1 new commit in StationPlaylist:

https://bitbucket.org/nvdaaddonteam/stationplaylist/commits/b590b64e170a/
Changeset: b590b64e170a
Branch: 6.0/trackTally
User: josephsl
Date: 2015-06-26 17:03:55+00:00
Summary: Track Tally (6.0-dev): When trying to perform track time analysis,
check to make sure at least one track is visible.

Affected #: 1 file

diff --git a/addon/appModules/splstudio/__init__.py
b/addon/appModules/splstudio/__init__.py
index 1d6922f..5e421e4 100755
--- a/addon/appModules/splstudio/__init__.py
+++ b/addon/appModules/splstudio/__init__.py
@@ -1260,10 +1260,14 @@ class AppModule(appModuleHandler.AppModule):
ui.message("Track time analysis deactivated")

def script_trackTimeAnalysis(self, gesture):
+ focus = api.getFocusObject()
+ if focus.role == controlTypes.ROLE_LIST:
+ ui.message("No tracks were added, cannot perform track
time analysis")
+ return
if self._analysisMarker is None:
ui.message("No track selected as start of analysis
marker, cannot perform time analysis")
return
- trackPos = api.getFocusObject().IAccessibleChildID-1
+ trackPos = focus.IAccessibleChildID-1
if self._analysisMarker == trackPos:
filename = statusAPI(self._analysisMarker, 211,
ret=True)
statusAPI(filename, 30, func=self.announceTime)

Repository URL: https://bitbucket.org/nvdaaddonteam/stationplaylist/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.

Other related posts:

  • » commit/StationPlaylist: josephsl: Track Tally (6.0-dev): When trying to perform track time analysis, check to make sure at least one track is visible. - commits-noreply