Clean up existing bindings on reset
This commit is contained in:
@@ -213,6 +213,7 @@ class LIBGTKMM2EXT_API Bindings {
|
||||
std::vector<Glib::RefPtr<Gtk::Action> >& actions);
|
||||
|
||||
/* all bindings currently in existence, as grouped into Bindings */
|
||||
static void reset_bindings () { bindings.clear (); }
|
||||
static std::list<Bindings*> bindings;
|
||||
static Bindings* get_bindings (std::string const& name, ActionMap&);
|
||||
static void associate_all ();
|
||||
|
||||
@@ -722,6 +722,7 @@ Keyboard::reset_bindings ()
|
||||
|
||||
{
|
||||
PBD::Unwinder<bool> uw (can_save_keybindings, false);
|
||||
Bindings::reset_bindings ();
|
||||
setup_keybindings ();
|
||||
Bindings::associate_all ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user