← Back to team overview

openshot.developers team mailing list archive

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

 

I think I know where the issue is.
Apparently we did check if default_folder is "None" in lin 47 but the value of default_folder is None instead (None and not the string "None")

so if we change from:

		if default_folder != "None":
			self.frmAddFiles.set_current_folder(preferences.Settings.app_state["import_folder"])

to:
		if default_folder != None:
			self.frmAddFiles.set_current_folder(preferences.Settings.app_state["import_folder"])

the problem should be fix. Though I don't know whether or not there is a case where default_folder is "None", in that case we should check both.
In the first place, the issue only happen if you import files from "Recently Used" or something similar. A better fix might be to check if the current folder is None before assigning it to "import_folder".

-- 
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