|
|
|
@ -884,6 +884,18 @@ class Interface(object):
|
|
|
|
|
(model, iter) = self._grid.get_selection().get_selected() |
|
|
|
|
message = model.get_value(iter, 0) |
|
|
|
|
|
|
|
|
|
confirm = gtk.MessageDialog(parent=self._main_window, |
|
|
|
|
type=gtk.MESSAGE_QUESTION, |
|
|
|
|
message_format='Delete this message?', |
|
|
|
|
buttons=gtk.BUTTONS_YES_NO); |
|
|
|
|
option = confirm.run() |
|
|
|
|
confirm.hide() |
|
|
|
|
|
|
|
|
|
_log.debug("Option selected: %s" % (option)) |
|
|
|
|
if option == -9: |
|
|
|
|
_log.debug("Delete cancelled"); |
|
|
|
|
return False |
|
|
|
|
|
|
|
|
|
self._update_statusbar('Deleting message...') |
|
|
|
|
self._delete_iter = iter |
|
|
|
|
_log.debug('Deleting messing %d', message.id) |
|
|
|
|