← Back to team overview

linux-traipu team mailing list archive

[Bug 1043655] Re: Import files only works once

 

I have made a change to
/usr/lib/pymodules/python2.7/openshot/windows/Addfiles.py:

Line 46:
if default_folder != "None":   --->   if default_folder != "None" and default_folder != None:
Line 47:
self.frmAddFiles.set_current_folder(preferences.Settings.app_state["import_folder"]) ---> self.frmAddFiles.set_current_folder(default_folder)

And now it works fine, unfortunately you're not using "git", otherwise I
could give a patch directly.

Best Regards,
Yanghao

-- 
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to OpenShot Video Editor.
https://bugs.launchpad.net/bugs/1043655

Title:
  Import files only works once

Status in OpenShot Video Editor:
  New

Bug description:
  openshot version: 1.4.2 from launchpad ppa
  host: ubuntu 12.04 x86_64
  libmlt4: 0.7.6+git20120204-2

  When importing files for a second time, there's an exception in python script:
  <console output>
  state saved
  on_tlbImportFiles_clicked called with self.GtkToolButton
  project state modified
  state saved
  project state modified
  state saved
  project state modified
  state saved
  project state modified
  state saved
  project state modified
  state saved
  project state modified
  state saved
  project state modified
  state saved
  project state modified
  state saved
  project state modified
  state saved
  on_tlbImportFiles_clicked called with self.GtkToolButton
  Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.7/openshot/windows/MainGTK.py", line 1781, in on_tlbImportFiles_clicked
      self.import_files_dialog = AddFiles.frmAddFiles(form=self, 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
  </console output>

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


References