[GTKUI] Fix AttributeError with clipboard strip
This commit is contained in:
parent
633c56f54e
commit
6ec32a85e4
@ -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()
|
||||||
return text.strip()
|
if text:
|
||||||
|
return text.strip()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user