Package: sushi / 1.4.0+git20160822+dfsg-4.1

nigiri-02-none-has-no-auto_scroll.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Description: fix following AttributeError error:
#  AttributeError: 'NoneType' object has no attribute 'auto_scroll'
# Last-Update: 2017-03-18
Index: sushi-1.4.0+git20160822+dfsg/nigiri/main.py.in
===================================================================
--- sushi-1.4.0+git20160822+dfsg.orig/nigiri/main.py.in
+++ sushi-1.4.0+git20160822+dfsg/nigiri/main.py.in
@@ -632,7 +632,8 @@ class MainWindow(object):
 	# Signal handlers
 
 	def handle_body_auto_scroll(self, switch):
-		self.current_tab.auto_scroll = switch
+		if self.current_tab:
+			self.current_tab.auto_scroll = switch
 
 	def handle_server_remove(self, server):
 		self.remove_server(server)