← Back to team overview

openshot.code team mailing list archive

[Branch ~openshot.code/openshot/main] Rev 495: Made a small change to the code that prevents the export of an empty timeline, so it stops loopin...

 

------------------------------------------------------------
revno: 495
committer: Andy Finch <we.rocked.in79@xxxxxxxxx>
branch nick: openshot
timestamp: Wed 2011-08-10 22:12:56 +0100
message:
  Made a small change to the code that prevents the export of an empty timeline, so it stops looping through the tracks as soon as something on the timeline is found.
modified:
  openshot/windows/MainGTK.py


--
lp:openshot
https://code.launchpad.net/~openshot.code/openshot/main

Your team OpenShot Code is subscribed to branch lp:openshot.
To unsubscribe from this branch go to https://code.launchpad.net/~openshot.code/openshot/main/+edit-subscription
=== modified file 'openshot/windows/MainGTK.py'
--- openshot/windows/MainGTK.py	2011-08-09 21:21:21 +0000
+++ openshot/windows/MainGTK.py	2011-08-10 21:12:56 +0000
@@ -1805,6 +1805,8 @@
 				emptytimeline = True
 			else:
 				emptytimeline = False
+				# don't bother continuing, as we know the timeline is not empty
+				break
 		#don't try and render an empty timeline
 		if emptytimeline:
 			messagebox.show(_("Openshot Error!"), _("The timeline is empty, there is nothing to export."))