Merge pull request #266 from tonysyu/viewer-fix-hard-exit

BUG: Closing ImageViewer shouldn't quit parent program.
This commit is contained in:
Stefan van der Walt committed 2012-08-25 05:27:33 -07:00
commit 3f8d000db3
1 file changed
+1 -1
+1 -1
View File
@@ -126,7 +126,7 @@ class ImageViewer(QtGui.QMainWindow):
for p in self.plugins:
p.show()
super(ImageViewer, self).show()
sys.exit(qApp.exec_())
qApp.exec_()
def redraw(self):
self.canvas.draw_idle()