Don't count attachment if screen not connected to 'attachment-count'
This commit is contained in:
1 parent
52e30bc4ac
commit
4b9bfa18df
1 file changed
+1
-1
@@ -226,7 +226,7 @@ class Screen(SignalEvent):
|
||||
def update_attachment(self, model):
|
||||
if model != self.__current_model:
|
||||
return False
|
||||
if model:
|
||||
if model and self.signal_connected('attachment-count'):
|
||||
attachment_count = model.get_attachment_count()
|
||||
self.signal('attachment-count', attachment_count)
|
||||
return False
|
||||
|
||||
Reference in new issue
Block a user