self._scrollTimer.timeout.connect(self._on_delayed_scroll_to_bottom)
self._window.show()
+ self._smsEntry.setPlainText(self._session.draft.message)
self._update_letter_count()
self._update_target_fields()
def close(self):
try:
+ self._session.draft = unicode(self._smsEntry.toPlainText())
self._window.destroy()
except RuntimeError:
_moduleLogger.exception("Oh well")
def _on_sms_clicked(self, arg):
with qui_utils.notify_error(self._app.errorLog):
message = unicode(self._smsEntry.toPlainText())
- self._session.draft.send(message)
+ self._session.draft = message
+ self._session.draft.send()
@misc_utils.log_exception(_moduleLogger)
def _on_call_clicked(self, arg):
with qui_utils.notify_error(self._app.errorLog):
+ message = unicode(self._smsEntry.toPlainText())
+ self._session.draft = message
self._session.draft.call()
@QtCore.pyqtSlot()
@misc_utils.log_exception(_moduleLogger)
def _on_close_window(self, checked = True):
with qui_utils.notify_error(self._app.errorLog):
- self._window.hide()
+ self._window.close()
def _get_contact_numbers(session, contactId, numberDescription):