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):
|
def _on_paste_version_success(url):
|
||||||
set_clipboard(url)
|
set_clipboard(url)
|
||||||
message.info("Version url {} yanked to clipboard.".format(url))
|
message.info("Version url {} yanked to clipboard.".format(url))
|
||||||
|
pbclient.deleteLater()
|
||||||
|
|
||||||
@pyqtSlot(str)
|
@pyqtSlot(str)
|
||||||
def _on_paste_version_err(text):
|
def _on_paste_version_err(text):
|
||||||
message.error("Failed to pastebin version"
|
message.error("Failed to pastebin version"
|
||||||
" info: {}".format(text))
|
" info: {}".format(text))
|
||||||
|
pbclient.deleteLater()
|
||||||
|
|
||||||
MISC_API = pastebin.PastebinClient.MISC_API_URL
|
MISC_API = pastebin.PastebinClient.MISC_API_URL
|
||||||
pbclient = pastebin.PastebinClient(http_client, parent=app,
|
pbclient = pastebin.PastebinClient(http_client, parent=app,
|
||||||
|
Loading…
Reference in New Issue
Block a user