Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#58 Cannot open a file the second time

closed-fixed
Pontus Ekberg
None
5
2009-04-07
2009-03-21
Anonymous
No

With Comix 4.0.3, when I open a file (rar/zip) the first time, it opens it and works great. But when I try to open another file, nothing seems to work. I would have to restart the program to open another file. So I ran it in the terminal and when I try to open the a second file, I get this error:

Traceback (most recent call last):
File "/usr/local/share/comix/src/filechooser.py", line 148, in _response
self.files_chosen(paths)
File "/usr/local/share/comix/src/filechooser.py", line 199, in files_chosen
self.filechooser.get_filter())
ValueError: list.index(x): x not in list

Discussion

  • montasir
    montasir
    2009-04-03

    Looks to be caused by the call to gtk.FileChooser.set_filename(). As a temporary fix, if it bothers you as much as it does me, removing the selection-of-the-last-opened-file functionality solves it. As of SVN-309, the exception is passed allowing execution to continue, but breaks the saving of the last selected filter in those cases.

     
  • Pontus Ekberg
    Pontus Ekberg
    2009-04-03

    • assigned_to: nobody --> herrekberg
     
  • Pontus Ekberg
    Pontus Ekberg
    2009-04-03

    There seems to be a bug in some versions of GTK+ (though it might be something else) that makes it impossible to set the first filter ("All files") the second time the dialog is created. There is a workaround in current SVN revision; it keeps filter settings, but when using "All files", it will turn up as blank in the filter selection box after the dialog has been opened the first time.

     
  • Taffit
    Taffit
    2009-04-06

    Thanks for this workaround, so the 4.0.4 version fix the issue.

     
  • Pontus Ekberg
    Pontus Ekberg
    2009-04-07

    You are right, this is fixed as of 4.0.4.

     
  • Pontus Ekberg
    Pontus Ekberg
    2009-04-07

    • status: open --> closed-fixed