Skip to content

Commit

Permalink
Merge pull request jziolkowski#42 from foxsam21/patch-1
Browse files Browse the repository at this point in the history
Strip out double quotes from copied text.
  • Loading branch information
jziolkowski authored Oct 4, 2019
2 parents cf4bfc2 + 738b708 commit 53ae442
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion GUI/Devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,10 @@ def change_view(self, a=None):

def ctx_menu_copy(self):
if self.idx:
QApplication.clipboard().setText(dumps(self.model.data(self.idx)))
string = dumps(self.model.data(self.idx))
if string.startswith('"') and string.endswith('"'):
string = string[1:-1]
QApplication.clipboard().setText(string)

def ctx_menu_clear_retained(self):
if self.device:
Expand Down

0 comments on commit 53ae442

Please sign in to comment.