diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2008-06-22 21:18:29 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2008-06-22 21:18:29 +0200 |
commit | b105a2a9e9068463eaad97b402209e3b944b6501 (patch) | |
tree | fa5f817a0f08eb84de1b61f8d94896e6dfcb0bcf /portato/gui/exception_handling.py | |
parent | 441784d7b54c5aefe1ba1dd5526bdc5ac960e4e5 (diff) | |
download | portato-b105a2a9e9068463eaad97b402209e3b944b6501.tar.gz portato-b105a2a9e9068463eaad97b402209e3b944b6501.tar.bz2 portato-b105a2a9e9068463eaad97b402209e3b944b6501.zip |
First mail window draft
Diffstat (limited to '')
-rw-r--r-- | portato/gui/exception_handling.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/portato/gui/exception_handling.py b/portato/gui/exception_handling.py index 29cd4e6..5d5eb17 100644 --- a/portato/gui/exception_handling.py +++ b/portato/gui/exception_handling.py @@ -21,6 +21,7 @@ from StringIO import StringIO from ..helper import debug, error from .dialogs import file_chooser_dialog, io_ex_dialog +from .windows.mailinfo import MailInfoWindow # for the i18n from ..constants import LOCALE_DIR, APP @@ -53,6 +54,7 @@ class UncaughtExceptionDialog(gtk.MessageDialog): self.format_secondary_text(_("It probably isn't fatal, but should be reported to the developers nonetheless.")) self.add_button(_("Show Details"), 1) + self.add_button(_("Send..."), 3) self.add_button(gtk.STOCK_SAVE_AS, 2) self.add_button(gtk.STOCK_CLOSE, gtk.RESPONSE_CLOSE) @@ -103,6 +105,9 @@ class UncaughtExceptionDialog(gtk.MessageDialog): else: debug("Nothing to save") + elif resp == 3: + debug("Send bug per mail") + MailInfoWindow(self, self.text) else: break self.destroy() |