mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Fix the "Copy" button on the crash report dialog.
This was noticed by Daniel Miller.
This commit is contained in:
parent
ce11ecb708
commit
9c8ff6b3d2
1 changed files with 4 additions and 0 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue