summaryrefslogtreecommitdiffstats
path: root/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-04-26 15:08:09 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-04-26 15:08:09 -0400
commit12c4a5eb07f346083a59bc7d18567b2df3ed94ee (patch)
tree638017b057b81d34935048d1b4c4bb7472614d88 /dimension
parent0acff566213fdddbc8f4561887aced121f82dc26 (diff)
downloaddimension-12c4a5eb07f346083a59bc7d18567b2df3ed94ee.tar.xz
future: Add a dmnsn_future_is_done() function.
Diffstat (limited to 'dimension')
-rw-r--r--dimension/preview.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dimension/preview.py b/dimension/preview.py
index bc8e105..e4e9c80 100644
--- a/dimension/preview.py
+++ b/dimension/preview.py
@@ -58,7 +58,7 @@ class PreviewWindow(QtGui.QMainWindow):
@QtCore.pyqtSlot()
def update_preview(self):
self.widget.updateGL()
- if self.future.progress() == 1:
+ if self.future.is_done():
self.render_timer.stop()
self.close_timer = QtCore.QTimer(self)
self.close_timer.singleShot(1000, self.close)