diff options
author | Carl Hetherington <carl@carlh.net> | 2010-12-06 04:29:06 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-12-06 04:29:06 +0000 |
commit | 3975355a5f7f2d795a369b091972051a50b9f331 (patch) | |
tree | 94a1dc604ecb128a50ebc07d603cbc1f9509cb16 /libs/ardour/plugin.cc | |
parent | bf7b8df028b5eceb227682c668e46a2c5e8b9278 (diff) |
Add dialog to allow removal of plugin presets. Should fix #2662.
git-svn-id: svn://localhost/ardour2/branches/3.0@8196 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/plugin.cc')
-rw-r--r-- | libs/ardour/plugin.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/ardour/plugin.cc b/libs/ardour/plugin.cc index 4fe51141f6..3bfb9e883f 100644 --- a/libs/ardour/plugin.cc +++ b/libs/ardour/plugin.cc @@ -221,6 +221,8 @@ Plugin::remove_preset (string name, string domain) presets.erase (p->uri); write_preset_file (envvar, domain); + + PresetRemoved (); /* EMIT SIGNAL */ } string @@ -309,7 +311,11 @@ Plugin::save_preset (string name, string domain) presets.insert (make_pair (uri, PresetRecord (uri, name))); free (uri); - return write_preset_file (envvar, domain); + bool const r = write_preset_file (envvar, domain); + + PresetAdded (); /* EMIT SIGNAL */ + + return r; } PluginPtr |