diff --git a/issues/issue-1ba42d0de5892489e7366fd1e73dc9e818868026.yaml b/issues/issue-1ba42d0de5892489e7366fd1e73dc9e818868026.yaml index a2a6831..46c16fb 100644 --- a/issues/issue-1ba42d0de5892489e7366fd1e73dc9e818868026.yaml +++ b/issues/issue-1ba42d0de5892489e7366fd1e73dc9e818868026.yaml @@ -5,8 +5,8 @@ type: :feature component: pygtk release: 1.0.0 reporter: Julio Biason -status: :unstarted -disposition: +status: :closed +disposition: :fixed creation_time: 2009-12-23 21:56:05.062614 Z references: [] @@ -16,3 +16,7 @@ log_events: - Julio Biason - created - "" +- - 2009-12-25 20:55:06.402541 Z + - Julio Biason + - closed with disposition fixed + - "" diff --git a/mitterlib/ui/ui_pygtk.py b/mitterlib/ui/ui_pygtk.py index 9d62e39..63c956b 100644 --- a/mitterlib/ui/ui_pygtk.py +++ b/mitterlib/ui/ui_pygtk.py @@ -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)