← Back to team overview

openshot.developers team mailing list archive

[Bug 874906] Re: can't import files more than one time

 

I have a temporary fix for 1.4.0, which can be attained by commenting
out or deleting a line of code in the file
/usr/lib/pymodules/python2.7/openshot/windows/AddFiles.py or wherever
that file is on your computer. Comment line 119:

		#set the last used folder
		preferences.Settings.app_state["import_folder"] = self.frmAddFiles.get_current_folder() <-- COMMENT THIS LINE OUT
		
		# clear and destroy this dialog

The problem apparently lies in
gtk.FileChooserDialog.get_current_folder() returning None when it
shouldn't, but that is over my head to fix.

Best regards,
ObsequiousNewt

** Attachment added: "Fixed file"
   https://bugs.launchpad.net/ubuntu/+source/openshot/+bug/874906/+attachment/2737310/+files/AddFiles.py

-- 
You received this bug notification because you are a member of OpenShot
Developers, which is subscribed to openshot in Ubuntu.
https://bugs.launchpad.net/bugs/874906

Title:
  can't import files more than one time

Status in “openshot” package in Ubuntu:
  Confirmed

Bug description:
  Ubuntu 11.10

  Launch openshot
  In the "Project Files" tab 
  Do "Import Files", select one or more files, click "Add"
  Then do it again.... the popup does'nt appear

  in a terminal I have this trace :
  project modified:  Added file
  state saved
  Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.7/openshot/windows/MainGTK.py", line 4459, in on_mnuAddFile_activate
      self.import_files_dialog = AddFiles.frmAddFiles(form=self.form, project=self.project)
    File "/usr/lib/pymodules/python2.7/openshot/windows/AddFiles.py", line 47, in __init__
      self.frmAddFiles.set_current_folder(preferences.Settings.app_state["import_folder"])
  TypeError: Gtk.FileChooser.set_current_folder() argument 1 must be string, not None

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openshot/+bug/874906/+subscriptions


References