Skip to content

Commit

Permalink
Fix JobMonitorTree middle-click copy. (#782)
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoTavares committed Oct 20, 2020
1 parent c3f24e3 commit babaa38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cuegui/cuegui/CueJobMonitorTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def __itemSingleClickedCopy(self, item, col):
@param col: The column clicked on"""
selected = [job.data.name for job in self.selectedObjects() if cuegui.Utils.isJob(job)]
if selected:
QtWidgets.QApplication.clipboard().setText(" ".join(selected))
QtWidgets.QApplication.clipboard().setText(" ".join(selected), QtGui.QClipboard.Selection)

def __itemSingleClickedComment(self, item, col):
"""If the comment column is clicked on, and there is a comment on the
Expand Down
4 changes: 2 additions & 2 deletions cuegui/cuegui/JobMonitorTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,9 @@ def __itemSingleClickedCopy(self, item, col):
@param item: The item clicked on
@type col: int
@param col: The column clicked on"""
selected = [job.data.name for job in self.selectedObjects() if cuegui.Utils.isJob(job)]
selected = [job.data.name for job in self.selectedObjects() if cuegui.Utils.isJob(job)]
if selected:
QtWidgets.QApplication.clipboard().setText(" ".join(selected))
QtWidgets.QApplication.clipboard().setText(" ".join(selected), QtGui.QClipboard.Selection)

def __itemSingleClickedComment(self, item, col):
"""If the comment column is clicked on, and there is a comment on the
Expand Down

0 comments on commit babaa38

Please sign in to comment.