Skip to content

Commit

Permalink
Per Ben's suggestion making sure we check for .mp4 not just mp4 at th…
Browse files Browse the repository at this point in the history
…e end of the file
  • Loading branch information
doutriaux1 committed Nov 4, 2013
1 parent eeedd82 commit b7f2445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vistrails/gui/uvcdat/animationWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit b7f2445

Please sign in to comment.