From 12c4a5eb07f346083a59bc7d18567b2df3ed94ee Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 26 Apr 2014 15:08:09 -0400 Subject: future: Add a dmnsn_future_is_done() function. --- dimension/preview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dimension') 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) -- cgit v1.2.3