commit/StationPlaylist: josephsl: 5.6: Catch attribute exception when certain windows appear.

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Thu, 12 Nov 2015 01:26:29 -0000

1 new commit in StationPlaylist:

https://bitbucket.org/nvdaaddonteam/stationplaylist/commits/a192cdcf7e42/
Changeset: a192cdcf7e42
Branch: stable
User: josephsl
Date: 2015-11-12 01:25:33+00:00
Summary: 5.6: Catch attribute exception when certain windows appear.

Affected #: 1 file

diff --git a/addon/appModules/splstudio/__init__.py
b/addon/appModules/splstudio/__init__.py
index 1fe958b..bdadb89 100755
--- a/addon/appModules/splstudio/__init__.py
+++ b/addon/appModules/splstudio/__init__.py
@@ -408,9 +408,11 @@ class AppModule(appModuleHandler.AppModule):
tones.beep(512, 400)
# Hack: auto scroll in Studio itself might be
broken (according to Brian Hartgen), so force NVDA to announce currently
playing track automatically if checked.
if splconfig.SPLConfig["SayPlayingTrackName"]:
- statusBar =
obj.parent.parent.parent.previous.previous.previous
- if statusBar is not None and
statusBar.firstChild is not None and statusBar.firstChild.role == 27:
- ui.message(obj.name)
+ statusBarFG = obj.parent.parent.parent
+ if statusBarFG is not None:
+ statusBar =
statusBarFG.previous.previous.previous
+ if statusBar is not None and
statusBar.firstChild is not None and statusBar.firstChild.role == 27:
+ ui.message(obj.name)
nextHandler()

# JL's additions

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: 5.6: Catch attribute exception when certain windows appear. - commits-noreply