fix traceback in xml console

This commit is contained in:
Denis Fomin 2013-01-05 18:29:55 +04:00
parent e0b63d4a40
commit 9f64f04b37
1 changed files with 1 additions and 2 deletions

View File

@ -3370,8 +3370,7 @@ class XMLConsoleWindow:
self.account) self.account)
return return
begin_iter, end_iter = self.input_tv_buffer.get_bounds() begin_iter, end_iter = self.input_tv_buffer.get_bounds()
stanza = self.input_tv_buffer.get_text(begin_iter, end_iter, True).decode( stanza = self.input_tv_buffer.get_text(begin_iter, end_iter, True)
'utf-8')
if stanza: if stanza:
gajim.connections[self.account].send_stanza(stanza) gajim.connections[self.account].send_stanza(stanza)
self.input_tv_buffer.set_text('') # we sent ok, clear the textview self.input_tv_buffer.set_text('') # we sent ok, clear the textview