~headbangerkenny/openshot/openshot

« back to all changes in this revision

Viewing changes to openshot/windows/MainGTK.py

  • Committer: Andy Finch
  • Date: 2012-04-11 20:32:52 UTC
  • Revision ID: we.rocked.in79@gmail.com-20120411203252-h3mesfbl159md1q0
Fixed a bug where the last used import folder setting would not get updated when a file was dropped into Openshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2561
2561
                        
2562
2562
                                elif total_ok_files == 0:
2563
2563
                                        messagebox.show(_("File Import Error"), _("The selected files either have an unsupported file type or have already been imported to the project."))
2564
 
                                        
 
2564
                                
 
2565
                                elif total_ok_files > 0:
 
2566
                                        #update the last used folder setting
 
2567
                                        (dirName, fileName) = os.path.split(path)
 
2568
                                        self.settings.app_state["import_folder"] = dirName
2565
2569
                        
2566
2570
                # refresh the form (i.e. add new items to the treeview)
2567
2571
                self.refresh_files()