Browse Source

Abort also in case of empty replies.

master
Julio Biason 15 years ago
parent
commit
d3458a25fb
  1. 10
      mitterlib/ui/ui_pygtk.py

10
mitterlib/ui/ui_pygtk.py

@ -487,9 +487,19 @@ class Interface(object):
status = self._update_field.text.strip() status = self._update_field.text.strip()
if not status: if not status:
_log.debug('Empty message, aborting.')
self._update_field.hide() self._update_field.hide()
return return
page = self._main_tabs.get_current_page()
child = self._main_tabs.get_nth_page(page)
if child.selected:
if child.selected.reply_prefix.strip() == status:
_log.debug('Empty reply, aborting.')
self._udpate_field.hide()
return
_log.debug('Status: %s', status) _log.debug('Status: %s', status)
self._update_statusbar(_('Sending update...')) self._update_statusbar(_('Sending update...'))

Loading…
Cancel
Save