1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 14:11:29 +00:00

Fix the "Copy" button on the crash report dialog.

This was noticed by Daniel Miller.
This commit is contained in:
david
2012-03-30 07:13:39 +00:00
parent ce11ecb708
commit 9c8ff6b3d2

View File

@@ -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())