[Pkg-privacy-commits] [torbrowser-launcher] 01/01: Fix settings crash related to #241

Holger Levsen holger at layer-acht.org
Fri Jul 22 20:30:54 UTC 2016


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository torbrowser-launcher.

commit 8280e90b541b391bc2e61b71d528983af0bb45cc
Author: Micah Lee <micah at micahflee.com>
Date:   Fri Jul 22 16:04:48 2016 -0400

    Fix settings crash related to #241
---
 torbrowser_launcher/settings.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/torbrowser_launcher/settings.py b/torbrowser_launcher/settings.py
index 6ef4d6f..93f1554 100644
--- a/torbrowser_launcher/settings.py
+++ b/torbrowser_launcher/settings.py
@@ -237,7 +237,10 @@ class Settings:
         # checkbox options
         self.common.settings['download_over_tor'] = self.tor_download_checkbox.get_active()
         self.common.settings['modem_sound'] = self.modem_checkbox.get_active()
-        self.common.settings['force_en-US'] = self.force_en_checkbox.get_active()
+        if hasattr(self, 'force_en_checkbox'):
+            self.common.settings['force_en-US'] = self.force_en_checkbox.get_active()
+        else:
+            self.common.settings['force_en-US'] = False
         self.common.settings['tor_socks_address'] = self.tor_addr.get_text()
 
         # figure out the selected mirror

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/torbrowser-launcher.git



More information about the Pkg-privacy-commits mailing list