Philipp Hörist pushed to branch gajim_1.0 at gajim / gajim
Commits:
191a5772 by Philipp Hörist at 2018-03-17T14:16:59+01:00
Handle connection lost notification click
Fixes #8823
- - - - -
c3896630 by Philipp Hörist at 2018-03-17T14:17:08+01:00
Fix deleting an account that was never connected
Fixes #8951
- - - - -
4fec13b7 by Philipp Hörist at 2018-03-17T14:17:19+01:00
Catch all exceptions when testing Farstream
- - - - -
3 changed files:
- gajim/common/app.py
- gajim/common/logger.py
- gajim/gui_interface.py
Changes:
=====================================
gajim/common/app.py
=====================================
--- a/gajim/common/app.py
+++ b/gajim/common/app.py
@@ -228,7 +228,8 @@ try:
session = conference.new_session(Farstream.MediaType.AUDIO)
del session
del conference
- except GLib.GError:
+ except Exception as e:
+ glog.info(e)
HAVE_FARSTREAM = False
except (ImportError, ValueError):
=====================================
gajim/common/logger.py
=====================================
--- a/gajim/common/logger.py
+++ b/gajim/common/logger.py
@@ -1104,8 +1104,12 @@ class Logger:
:param account_jid: The jid of the account
"""
-
- jid_id = self.get_jid_id(account_jid)
+ try:
+ jid_id = self.get_jid_id(account_jid)
+ except ValueError:
+ # This happens if the JID never made it to the Database
+ # because the account was never connected
+ return
sql = '''
DELETE FROM roster_entry WHERE account_jid_id = {jid_id};
=====================================
gajim/gui_interface.py
=====================================
--- a/gajim/gui_interface.py
+++ b/gajim/gui_interface.py
@@ -227,7 +227,7 @@ class Interface:
path = gtkgui_helpers.get_icon_path('gajim-connection_lost', 48)
account = obj.conn.name
notify.popup(_('Connection Failed'), account, account,
- '', path, obj.title, obj.msg)
+ 'connection-lost', path, obj.title, obj.msg)
@staticmethod
def unblock_signed_in_notifications(account):
@@ -1685,6 +1685,10 @@ class Interface:
resource = app.get_resource_from_jid(fjid)
jid = app.get_jid_without_resource(fjid)
+ if type_ == 'connection-lost':
+ app.interface.roster.window.present()
+ return
+
if type_ in ('printed_gc_msg', 'printed_marked_gc_msg', 'gc_msg'):
w = self.msg_win_mgr.get_window(jid, account)
if jid in self.minimized_controls[account]:
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/245e478ea6245848a419e68b637893b88…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/compare/245e478ea6245848a419e68b637893b88…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
52c06cd6 by Philipp Hörist at 2018-03-17T12:20:21+01:00
Catch all exceptions when testing Farstream
- - - - -
1 changed file:
- gajim/common/app.py
Changes:
=====================================
gajim/common/app.py
=====================================
--- a/gajim/common/app.py
+++ b/gajim/common/app.py
@@ -228,7 +228,8 @@ try:
session = conference.new_session(Farstream.MediaType.AUDIO)
del session
del conference
- except GLib.GError:
+ except Exception as e:
+ glog.info(e)
HAVE_FARSTREAM = False
except (ImportError, ValueError):
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/52c06cd64f2b2c4f767a627c21ed8cf8c2…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/52c06cd64f2b2c4f767a627c21ed8cf8c2…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / gajim
Commits:
d8777a78 by Philipp Hörist at 2018-03-17T00:20:11+01:00
Fix deleting an account that was never connected
Fixes #8951
- - - - -
1 changed file:
- gajim/common/logger.py
Changes:
=====================================
gajim/common/logger.py
=====================================
--- a/gajim/common/logger.py
+++ b/gajim/common/logger.py
@@ -1104,8 +1104,12 @@ class Logger:
:param account_jid: The jid of the account
"""
-
- jid_id = self.get_jid_id(account_jid)
+ try:
+ jid_id = self.get_jid_id(account_jid)
+ except ValueError:
+ # This happens if the JID never made it to the Database
+ # because the account was never connected
+ return
sql = '''
DELETE FROM roster_entry WHERE account_jid_id = {jid_id};
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/d8777a78aa49c9edf8d9876c66c9c5b24e…
---
View it on GitLab: https://dev.gajim.org/gajim/gajim/commit/d8777a78aa49c9edf8d9876c66c9c5b24e…
You're receiving this email because of your account on dev.gajim.org.
Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
c9dfc044 by Philipp Hörist at 2018-03-14T23:17:29+01:00
Fix syntax error
- - - - -
1 changed file:
- nbxmpp/auth_nb.py
Changes:
=====================================
nbxmpp/auth_nb.py
=====================================
--- a/nbxmpp/auth_nb.py
+++ b/nbxmpp/auth_nb.py
@@ -695,7 +695,7 @@ class NonBlockingBind(PlugIn):
return
self.session = -1
- session = feats.getTag('session', namespace=NS_SESSION):
+ session = feats.getTag('session', namespace=NS_SESSION)
if session is not None:
if session.getTag('optional') is None:
self.session = 1
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/c9dfc0447e4800e0317aaa6ec9…
---
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/commit/c9dfc0447e4800e0317aaa6ec9…
You're receiving this email because of your account on dev.gajim.org.