fix wrong replacement
This commit is contained in:
parent
7b5997156b
commit
461041ae5b
3 changed files with 5 additions and 6 deletions
|
@ -920,7 +920,7 @@ class Interface:
|
||||||
self.sth_at_sth_dot_sth_re = sre.compile(r'\S+@\S+\.\S*[^\s)?]')
|
self.sth_at_sth_dot_sth_re = sre.compile(r'\S+@\S+\.\S*[^\s)?]')
|
||||||
|
|
||||||
def on_launch_browser_mailer(self, widget, url, kind):
|
def on_launch_browser_mailer(self, widget, url, kind):
|
||||||
helpers.launch_browser_mailer(kind, url)
|
helpers.launch_browser_mailer(kind, url.decode('utf-8'))
|
||||||
|
|
||||||
def init_regexp(self):
|
def init_regexp(self):
|
||||||
#initialize emoticons dictionary
|
#initialize emoticons dictionary
|
||||||
|
|
|
@ -80,6 +80,7 @@ class GajimThemesWindow:
|
||||||
model = self.themes_tree.get_model()
|
model = self.themes_tree.get_model()
|
||||||
iter = model.get_iter_from_string(row)
|
iter = model.get_iter_from_string(row)
|
||||||
old_name = model.get_value(iter, 0).decode('utf-8')
|
old_name = model.get_value(iter, 0).decode('utf-8')
|
||||||
|
new_name = new_name.decode('utf-8')
|
||||||
if old_name == new_name:
|
if old_name == new_name:
|
||||||
return
|
return
|
||||||
if new_name in gajim.config.get_per('themes'):
|
if new_name in gajim.config.get_per('themes'):
|
||||||
|
|
|
@ -184,12 +184,10 @@ class RosterWindow:
|
||||||
if model.iter_n_children(parent_i) == 0:
|
if model.iter_n_children(parent_i) == 0:
|
||||||
model.remove(parent_i)
|
model.remove(parent_i)
|
||||||
# We need to check all contacts, even offline contacts
|
# We need to check all contacts, even offline contacts
|
||||||
group_empty = True
|
|
||||||
for jid in gajim.contacts[account]:
|
for jid in gajim.contacts[account]:
|
||||||
if group in gajim.contacts[account][jid][0].groups:
|
if group in gajim.contacts[account][jid][0].groups:
|
||||||
group_empty = False
|
|
||||||
break
|
break
|
||||||
if group_empty:
|
else:
|
||||||
del gajim.groups[account][group]
|
del gajim.groups[account][group]
|
||||||
|
|
||||||
def get_appropriate_state_images(self, jid):
|
def get_appropriate_state_images(self, jid):
|
||||||
|
@ -2002,10 +2000,10 @@ _('If "%s" accepts this request you will know his status.') %jid)
|
||||||
model.remove(iter_group_source)
|
model.remove(iter_group_source)
|
||||||
#delete the group if it is empty (need to look for offline users too)
|
#delete the group if it is empty (need to look for offline users too)
|
||||||
for jid in gajim.contacts[account]:
|
for jid in gajim.contacts[account]:
|
||||||
if group in gajim.contacts[account][jid][0].groups:
|
if grp_source in gajim.contacts[account][jid][0].groups:
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
del gajim.groups[account][group]
|
del gajim.groups[account][grp_source]
|
||||||
if not grp_dest in u.groups:
|
if not grp_dest in u.groups:
|
||||||
u.groups.append(grp_dest)
|
u.groups.append(grp_dest)
|
||||||
self.add_contact_to_roster(data, account)
|
self.add_contact_to_roster(data, account)
|
||||||
|
|
Loading…
Add table
Reference in a new issue