Project Settings: When there are two presets with the same name, show a proper error message
@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 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 151, in saveSection
parser.add_section(section)
File "/usr/lib/python2.6/ConfigParser.py", line 245, in add_section
raise DuplicateSectionError(section)
ConfigParser.DuplicateSectionError: Section 'New Preset' already exists
Imported from https://bugzilla.gnome.org/show_bug.cgi?id=638799