Skip to content

Commit

Permalink
hmm
Browse files Browse the repository at this point in the history
  • Loading branch information
rsohw committed Apr 2, 2019
1 parent c1a2561 commit 6474fad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sketchfab.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def upload(self):
# for now this is a fake progress bar, it won't move, just to show the user that the upload is in progress
self.form.ProgressBar.setFormat(translate("WebTools","Uploading")+" "+pack[1]+"...")
self.form.ProgressBar.show()
QtGui.qApp.processEvents()
QtGui.QApplication.instance().processEvents()
try:
r = requests.post(SKETCHFAB_UPLOAD_URL, **self.get_request_payload(self.form.Text_Token.text(), data, files=files))
except requests.exceptions.RequestException as e:
Expand Down Expand Up @@ -277,7 +277,7 @@ def fix(self):
self.form.ProgressBar.setValue(75)
if self.poll(self.url):
self.form.ProgressBar.setFormat(translate("WebTools","Fixing model..."))
QtGui.qApp.processEvents()
QtGui.QApplication.instance().processEvents()
self.patch(self.url)
else:
QtGui.QMessageBox.warning(None,translate("WebTools","Patch error"),translate("WebTools","Patching failed. The model was successfully uploaded, but might still require manual adjustments."))
Expand Down

0 comments on commit 6474fad

Please sign in to comment.