summaryrefslogtreecommitdiff
path: root/portato/gui/exception_handling.py
diff options
context:
space:
mode:
Diffstat (limited to 'portato/gui/exception_handling.py')
-rw-r--r--portato/gui/exception_handling.py5
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()