Add deleteLater to the paste callbacks

This commit is contained in:
George Edward Bulmer 2018-02-07 15:28:58 +00:00
parent 86d3abc0c4
commit d0ec33730e

View File

@ -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,