# HG changeset patch # User Goffi # Date 1554664191 -7200 # Node ID 93dfbeb41da80c875d9ec5a71e46890396084473 # Parent 5b0f897689b7e5e100d1999df72c0b802127e25f primitivus: don't call chatStateComposing when host is out of sync: if host is out of sync, that means that server is not connected and it makes no sense to call this method. Furthermore, this was resulting in a crash because profile is not found. diff -r 5b0f897689b7 -r 93dfbeb41da8 sat_frontends/primitivus/primitivus --- a/sat_frontends/primitivus/primitivus Sun Apr 07 21:09:49 2019 +0200 +++ b/sat_frontends/primitivus/primitivus Sun Apr 07 21:09:51 2019 +0200 @@ -180,7 +180,8 @@ if (self._mode == C.MODE_INSERTION and isinstance(self.host.selected_widget, quick_chat.QuickChat) and key not in sat_widgets.FOCUS_KEYS - and key not in (a_key['HISTORY_PREV'], a_key['HISTORY_NEXT'])): + and key not in (a_key['HISTORY_PREV'], a_key['HISTORY_NEXT']) + and self.host.sync): self.host.bridge.chatStateComposing(self.host.selected_widget.target, self.host.selected_widget.profile) return super(EditBar, self).keypress(size, key)