From 9c8ff6b3d2d16d1d2545d19abf3df3f64916aff5 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 30 Mar 2012 07:13:39 +0000 Subject: [PATCH] Fix the "Copy" button on the crash report dialog. This was noticed by Daniel Miller. --- zenmap/zenmapGUI/CrashReport.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zenmap/zenmapGUI/CrashReport.py b/zenmap/zenmapGUI/CrashReport.py index 44a990120..658cccb1b 100644 --- a/zenmap/zenmapGUI/CrashReport.py +++ b/zenmap/zenmapGUI/CrashReport.py @@ -177,6 +177,10 @@ The developers will see your report and try to fix the problem.""") % \ self.btn_copy.connect("clicked", self.copy) self.connect("delete-event", self.close) + def get_description(self): + buff = self.description_text.get_buffer() + return buff.get_text(buff.get_start_iter(), buff.get_end_iter()) + def copy(self, widget=None, event=None): clipboard = gtk.clipboard_get() clipboard.set_text(self.get_description())