← Back to team overview

openshot.code team mailing list archive

[Branch ~openshot.code/openshot/main] Rev 575: Changing labels now updates the undo/redo history and marks the project as 'modified'.

 

------------------------------------------------------------
revno: 575
fixes bug(s): https://launchpad.net/bugs/855824
committer: Jonathan Thomas <Jonathan.Oomph@xxxxxxxxx>
branch nick: openshot
timestamp: Wed 2011-09-21 14:22:20 -0500
message:
  Changing labels now updates the undo/redo history and marks the project as 'modified'.
modified:
  openshot/classes/files.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/classes/files.py'
--- openshot/classes/files.py	2011-09-16 04:43:03 +0000
+++ openshot/classes/files.py	2011-09-21 19:22:20 +0000
@@ -507,6 +507,9 @@
 			if item.unique_id == unique_id:
 				item.label = value
 				
+				# mark project as modified
+				self.project.set_project_modified(is_modified=True, refresh_xml=True, type=_("Updated Label"))
+				
 		if refresh_tree == 1:
 			# Update the main form
 			self.project.form.refresh_files()