Import from recent files makes troubles

Bug #1008930 reported by Emanuele Faranda
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenShot Video Editor
New
Low
Unassigned

Bug Description

Openshot version 1.4.2, installed on Debian wheezy from testing repository.

The first import from recent files goes fine. But after it the import button doesn't work anymore.
Launching from terminal, it gives the following error:

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

Bug seems to be solved changing line 46 of openshot/windows/AddFiles.py , from:
 if default_folder != "None":
to:
if default_folder != None:

Revision history for this message
Olivier Girard (eolinwen) wrote :

Unfortunately, I have not been able to reproduce it on my ...........Ubuntu.

Changed in openshot:
milestone: none → 1.4.3
importance: Undecided → Low
Revision history for this message
Olivier Girard (eolinwen) wrote :

However, doing like that we are following the PEP's recommandations and it seems me that Openshot is open faster.
Here the patch for this bug.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.