mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +00:00
[GTKUI] Fix AttributeError with clipboard strip
This commit is contained in:
parent
633c56f54e
commit
6ec32a85e4
1 changed files with 2 additions and 1 deletions
|
@ -329,4 +329,5 @@ def listview_replace_treestore(listview):
|
||||||
|
|
||||||
def get_clipboard_text():
|
def get_clipboard_text():
|
||||||
text = clipboard_get(selection=SELECTION_PRIMARY).wait_for_text() or clipboard_get().wait_for_text()
|
text = clipboard_get(selection=SELECTION_PRIMARY).wait_for_text() or clipboard_get().wait_for_text()
|
||||||
|
if text:
|
||||||
return text.strip()
|
return text.strip()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue