Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix copying to clipboard in fTools (closes #8442)
  • Loading branch information
alexbruy committed Aug 12, 2013
1 parent 1cadc25 commit 7b57676
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions python/plugins/fTools/tools/doValidate.py
Expand Up @@ -113,8 +113,7 @@ def keyPressEvent( self, e ):
e.key() == Qt.Key_C:
items = ""
for row in range( self.tblUnique.rowCount() ):
items.append( self.tblUnique.item( row, 0 ).text()
+ "," + self.tblUnique.item( row, 1 ).text() + "\n" )
items += self.tblUnique.item( row, 0 ).text() + "," + self.tblUnique.item( row, 1 ).text() + "\n"
if items:
clip_board = QApplication.clipboard()
clip_board.setText( items )
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/fTools/tools/doVisual.py
Expand Up @@ -68,10 +68,10 @@ def keyPressEvent( self, e ):
items = ""
if self.myFunction in ( 1, 2 ):
for rec in range( self.tblUnique.rowCount() ):
items.append( self.tblUnique.item( rec, 0 ).text() + "\n" )
items += self.tblUnique.item( rec, 0 ).text() + "\n"
else:
for rec in range( self.tblUnique.rowCount() ):
items.append( self.tblUnique.item( rec, 0 ).text() + ":" + self.tblUnique.item( rec, 1 ).text() + "\n" )
items += self.tblUnique.item( rec, 0 ).text() + ":" + self.tblUnique.item( rec, 1 ).text() + "\n"
if items:
clip_board = QApplication.clipboard()
clip_board.setText( items )
Expand Down

0 comments on commit 7b57676

Please sign in to comment.