Philipp Hörist pushed to branch master at gajim / gajim
Commits:
7703d40e by lovetox at 2020-09-18T10:24:13+02:00
ChatControlBase: Don’t fail on empty clipboard
Fixes #10272
- - - - -
1 changed file:
- gajim/chat_control_base.py
Changes:
=====================================
gajim/chat_control_base.py
=====================================
@@ -729,6 +729,8 @@ class ChatControlBase(ChatCommandProcessor, CommandTools, EventHelper):
def paste_clipboard_as_quote(self, _item: Gtk.MenuItem) -> None:
clipboard = Gtk.Clipboard.get(Gdk.SELECTION_CLIPBOARD)
text = clipboard.wait_for_text()
+ if text is None:
+ return
self.insert_as_quote(text)
def on_quote(self, _widget, text):
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/7703d40e2aa52f37ff2fc173a466e271…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/7703d40e2aa52f37ff2fc173a466e271…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
5351b2bf by lovetox at 2020-09-17T06:36:31+02:00
Settings: Add missing return
- - - - -
1 changed file:
- gajim/gtk/settings.py
Changes:
=====================================
gajim/gtk/settings.py
=====================================
@@ -267,7 +267,7 @@ class GenericSetting(Gtk.ListBoxRow):
return app.settings.get_contact_setting(account, jid, value)
if type_ == SettingType.GROUP_CHAT:
- value = app.settings.get_group_chat_setting(
+ return app.settings.get_group_chat_setting(
account, jid, value, context)
if type_ == SettingType.CONFIG:
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/5351b2bf4564131c8f10ec035ee0f0cc…
--
View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/5351b2bf4564131c8f10ec035ee0f0cc…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch tasks at gajim / python-nbxmpp
Commits:
e59383ae by lovetox at 2020-09-16T14:24:55+02:00
Fix pylint error
- - - - -
1 changed file:
- nbxmpp/task.py
Changes:
=====================================
nbxmpp/task.py
=====================================
@@ -207,7 +207,7 @@ class Task:
def finish(self):
if self._error is not None:
- raise self._error
+ raise self._error # pylint: disable=raising-bad-type
return self._result
def set_user_data(self, user_data):
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/e59383ae5d02c29e8d3cff8d…
--
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/e59383ae5d02c29e8d3cff8d…
You're receiving this email because of your account on dev.gajim.org.