From b7f2445c89c966fd5996ba0b22b50a8354549fe2 Mon Sep 17 00:00:00 2001 From: Charles Doutriaux Date: Mon, 4 Nov 2013 15:31:28 -0800 Subject: [PATCH] Per Ben's suggestion making sure we check for .mp4 not just mp4 at the end of the file --- vistrails/gui/uvcdat/animationWidget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vistrails/gui/uvcdat/animationWidget.py b/vistrails/gui/uvcdat/animationWidget.py index a4405b89..a1b00878 100644 --- a/vistrails/gui/uvcdat/animationWidget.py +++ b/vistrails/gui/uvcdat/animationWidget.py @@ -251,7 +251,7 @@ def paused(self): def save(self): fnm = str(QtGui.QFileDialog.getSaveFileName(None,"MP4 file name...",filter="MP4 file (*.mp4, *.mpeg)")) - if fnm[-3:].lower() not in ["mp4","mov"]: + if fnm[-4:].lower() not in [".mp4",".mov",".avi"]: fnm+=".mp4" self.canvas.animate.save(fnm)