Project Settings: Error when removing a Preset, when another Preset with the same name has just been removed
@aleb
Submitted by Alex Băluț Assigned to Alex Băluț @aleb
Description
Steps to reproduce:
- ./bin/pitivi, notice the Startup Wizard
- Click New, notice the Project Settings window
- Click Add twice, notice two new Presets have been added.
- Click the first "New Preset", click Remove
- Click OK, notice an error in the console:
Traceback (most recent call last):
File "pitivi/ui/projectsettings.py", line 421, in _responseCb
self.video_presets.save()
File "pitivi/ui/preset.py", line 52, in save
self._save(parser)
File "pitivi/ui/preset.py", line 61, in _save
self.saveSection(parser, name)
File "pitivi/ui/preset.py", line 150, in saveSection
values = self.presets[section]
KeyError: 'New Preset'
Imported from https://bugzilla.gnome.org/show_bug.cgi?id=638805