Cannot open a file the second time
Brought to you by:
herrekberg
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
I filed a similar on Debian a few time ago, and I still don't know how to reset preferences.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=517932
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.
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.
Thanks for this workaround, so the 4.0.4 version fix the issue.
You are right, this is fixed as of 4.0.4.