# Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: effingoose@gmail.com-20110224071533-olpz22wjlnkt8mfc # target_branch: http://bazaar.launchpad.net/~jonoomph/openshot/main/ # testament_sha1: 4ffc312417a81829415ea684fab18a61633e45f6 # timestamp: 2011-02-24 22:44:56 +1000 # base_revision_id: jonathan.oomph@gmail.com-20110222071608-\ # nv7vn0x9gx8v5mcv # # Begin patch === modified file 'openshot/classes/files.py' --- openshot/classes/files.py 2011-02-22 05:28:24 +0000 +++ openshot/classes/files.py 2011-02-24 07:15:33 +0000 @@ -378,10 +378,10 @@ return path - def UpdateFileLabel(self, filename, value, refresh_tree=0): + def UpdateFileLabel(self, unique_id, value, refresh_tree=0): #this will only be called when the treeview mode is selected, not the thumbview for item in self.items: - if item.name.endswith(filename): + if item.unique_id == unique_id: item.label = value if refresh_tree == 1: === modified file 'openshot/classes/tree.py' --- openshot/classes/tree.py 2010-12-03 23:07:42 +0000 +++ openshot/classes/tree.py 2011-02-24 07:15:33 +0000 @@ -70,6 +70,6 @@ #set the edit in the model model.set(iter,3,new_text) #update the file object with the label edit - filename = model.get_value(iter, 1) - project.project_folder.UpdateFileLabel(filename, new_text, 0) + unique_id = model.get_value(iter, 4) + project.project_folder.UpdateFileLabel(unique_id, new_text, 0) === modified file 'openshot/windows/FileProperties.py' --- openshot/windows/FileProperties.py 2010-11-22 23:15:11 +0000 +++ openshot/windows/FileProperties.py 2011-02-24 07:15:33 +0000 @@ -86,7 +86,7 @@ if self.txtLabel.get_text() == "": return - self.project.project_folder.UpdateFileLabel(self.lblLocation1.get_text(), self.txtLabel.get_text(), 1) + self.project.project_folder.UpdateFileLabel(self.file.unique_id, self.txtLabel.get_text(), 1) self.frmFileProperties.destroy() def main(): === modified file 'openshot/windows/TreeBlender.py' --- openshot/windows/TreeBlender.py 2010-12-03 23:07:42 +0000 +++ openshot/windows/TreeBlender.py 2011-02-24 07:15:33 +0000 @@ -183,13 +183,6 @@ def cell_edited(self, cell, row, new_text, model, project=None): ##Fired when the editable label cell is edited - #get the row that was edited - iter = model.get_iter_from_string(row) - column = cell.get_data(_("Label")) - #set the edit in the model - model.set(iter,3,new_text) - #update the file object with the label edit - filename = model.get_value(iter, 1) - project.project_folder.UpdateFileLabel(filename, new_text, 0) + pass === modified file 'openshot/windows/TreeEffects.py' --- openshot/windows/TreeEffects.py 2011-01-29 06:32:37 +0000 +++ openshot/windows/TreeEffects.py 2011-02-24 07:15:33 +0000 @@ -275,13 +275,5 @@ def cell_edited(self, cell, row, new_text, model, project=None): ##Fired when the editable label cell is edited - #get the row that was edited - iter = model.get_iter_from_string(row) - column = cell.get_data(_("Label")) - #set the edit in the model - model.set(iter,3,new_text) - #update the file object with the label edit - filename = model.get_value(iter, 1) - project.project_folder.UpdateFileLabel(filename, new_text, 0) - + pass === modified file 'openshot/windows/TreeFiles.py' --- openshot/windows/TreeFiles.py 2009-10-14 05:19:35 +0000 +++ openshot/windows/TreeFiles.py 2011-02-24 07:15:33 +0000 @@ -139,8 +139,8 @@ #set the edit in the model model.set(iter,3,new_text) #update the file object with the label edit - filename = model.get_value(iter, 1) - self.project.project_folder.UpdateFileLabel(filename, new_text, 0) + unique_id = model.get_value(iter, 4) + self.project.project_folder.UpdateFileLabel(unique_id, new_text, 0) def set_project(self, project): self.project = project === modified file 'openshot/windows/TreeHistory.py' --- openshot/windows/TreeHistory.py 2010-01-31 22:50:27 +0000 +++ openshot/windows/TreeHistory.py 2011-02-24 07:15:33 +0000 @@ -127,14 +127,7 @@ def cell_edited(self, cell, row, new_text, model, project=None): ##Fired when the editable label cell is edited - #get the row that was edited - iter = model.get_iter_from_string(row) - column = cell.get_data(_("Label")) - #set the edit in the model - model.set(iter,3,new_text) - #update the file object with the label edit - filename = model.get_value(iter, 1) - project.project_folder.UpdateFileLabel(filename, new_text, 0) + pass def set_project(self, project): self.project = project # Begin bundle IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWSpe7y8ABPVfgAAwUGf/91P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