Add deleteLater to the paste callbacks
This commit is contained in:
parent
86d3abc0c4
commit
d0ec33730e
@ -931,11 +931,13 @@ def pastebin_version():
|
||||
def _on_paste_version_success(url):
|
||||
set_clipboard(url)
|
||||
message.info("Version url {} yanked to clipboard.".format(url))
|
||||
pbclient.deleteLater()
|
||||
|
||||
@pyqtSlot(str)
|
||||
def _on_paste_version_err(text):
|
||||
message.error("Failed to pastebin version"
|
||||
" info: {}".format(text))
|
||||
pbclient.deleteLater()
|
||||
|
||||
MISC_API = pastebin.PastebinClient.MISC_API_URL
|
||||
pbclient = pastebin.PastebinClient(http_client, parent=app,
|
||||
|
Loading…
Reference in New Issue
Block a user