openshot.code team mailing list archive
-
openshot.code team
-
Mailing list archive
-
Message #00123
[Branch ~openshot.code/openshot/main] Rev 580: Fixed a regression from rev 576, which broke the ability to remove a folder.
------------------------------------------------------------
revno: 580
fixes bug(s): https://launchpad.net/bugs/855824
committer: Jonathan Thomas <Jonathan.Oomph@xxxxxxxxx>
branch nick: openshot
timestamp: Wed 2011-09-21 15:53:57 -0500
message:
Fixed a regression from rev 576, which broke the ability to remove a folder.
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-09-21 19:34:36 +0000
+++ openshot/windows/MainGTK.py 2011-09-21 20:53:57 +0000
@@ -4532,8 +4532,11 @@
iters = [self.model.get_iter(path) for path in self.selected]
for iter in iters:
#remove from the file object
+
+ length = self.model.get_value(iter, 2)
unique_id = self.model.get_value(iter, 4)
- if unique_id:
+
+ if unique_id and length:
file_item = self.project.project_folder.FindFileByID(unique_id)
self.model.remove(iter)
self.project.project_folder.RemoveFile(file_item.name)