← Back to team overview

openshot.code team mailing list archive

[Branch ~openshot.code/openshot/main] Rev 651: Fixed a bug where the last used import folder setting would not get updated when a file was dropp...

 

------------------------------------------------------------
revno: 651
committer: Andy Finch <we.rocked.in79@xxxxxxxxx>
branch nick: openshot
timestamp: Wed 2012-04-11 21:32:52 +0100
message:
  Fixed a bug where the last used import folder setting would not get updated when a file was dropped into Openshot.
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	2012-03-22 20:58:02 +0000
+++ openshot/windows/MainGTK.py	2012-04-11 20:32:52 +0000
@@ -2561,7 +2561,11 @@
 			
 				elif total_ok_files == 0:
 					messagebox.show(_("File Import Error"), _("The selected files either have an unsupported file type or have already been imported to the project."))
-					
+				
+				elif total_ok_files > 0:
+					#update the last used folder setting
+					(dirName, fileName) = os.path.split(path)
+					self.settings.app_state["import_folder"] = dirName
 			
 		# refresh the form (i.e. add new items to the treeview)
 		self.refresh_files()