← Back to team overview

openshot.code team mailing list archive

[Branch ~openshot.code/openshot/main] Rev 501: Applied a patch from Emil to fix bug #674447, Adding clip over the end of the timeline closes an ...

 

------------------------------------------------------------
revno: 501
committer: Andy Finch <we.rocked.in79@xxxxxxxxx>
branch nick: openshot
timestamp: Tue 2011-08-16 21:12:18 +0100
message:
  Applied a patch from Emil to fix bug #674447, Adding clip over the end of the timeline closes an expanded folder in the project tree.
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-16 19:51:22 +0000
+++ openshot/windows/MainGTK.py	2011-08-16 20:12:18 +0000
@@ -932,7 +932,7 @@
 				button[0].set_stock_id(button[2])
 
 
-	def refresh(self):
+	def refresh(self, refresh_files = True):
 
 		# get correct gettext method
 		_ = self._
@@ -955,7 +955,8 @@
 		self.project.Render()
 
 		# get list of files
-		self.refresh_files()
+		if refresh_files:
+			self.refresh_files()
 
 		
 	def refresh_files(self, category=None, filter=None):
@@ -1455,8 +1456,8 @@
 			# update length of timeline
 			self.project.sequences[0].length = end_of_clip
 			
-			# refresh timeline
-			self.refresh()
+			# refresh timeline, but not the treeview/iconview
+			self.refresh(False)
 
 	def on_scrolledwindow_Right_size_allocate(self, widget, rectangle, *args):
 		# Track the size of the scrolled window as it's resized.  This is used by the