Crash when opening a project when another project is already open
- Start in debug mode, open the attached project. TutorialProject.zip
- Click on the 5th photo in the thumbnail list ("Pyrrhocoris1.tif") to make it the active photo.
- Try to open the following project: TextureTestingSynth.zip The program crashes, apparently trying to access a photo from the first project. (Not sure what would happen if the 2nd project did contain a photo with that name.)
Current photo is now Pyrrhocoris1.tif
Traceback (most recent call last):
File "D:/work/arthropods/arthropoddescriber2repository/arthropod_describer_py/arthropod_describer/app.py", line 662, in handle_tags_filter_changed
self.fetch_first_photo()
File "D:/work/arthropods/arthropoddescriber2repository/arthropod_describer_py/arthropod_describer/app.py", line 863, in fetch_first_photo
self.fetch_photo(new_index.row())
File "D:/work/arthropods/arthropoddescriber2repository/arthropod_describer_py/arthropod_describer/app.py", line 847, in fetch_photo
prev_idx = self.state.storage.image_names.index(self.state.current_photo.image_name)
ValueError: 'Pyrrhocoris1.tif' is not in list
Process finished with exit code 1
Similar thing also happens when creating a new project while another project is already open.
Edited by Karel Štěpka