Changeset 3025747aaf2b…
Parent c1aec97f2463…
by
Changes to one file · Browse files at 3025747aaf2b Showing diff from parent c1aec97f2463 Diff from another changeset...
@@ -411,6 +411,9 @@
def copy_to_clipboard(self, treeview):
'Write highlighted hunks to the clipboard'
+ if not treeview.is_focus():
+ # ignore ctrl-c not directed at treeview
+ return False
model, paths = treeview.get_selection().get_selected_rows()
cids = [ model[row][DM_CHUNK_ID] for row, in paths ]
headers = {}
|
Loading...