13
0

OSC: mark session dirty if setup changes

This commit is contained in:
Len Ovens 2016-11-18 08:43:58 -08:00
parent 1a6a72b57a
commit 3e3791b72e
3 changed files with 11 additions and 1 deletions

View File

@ -660,6 +660,12 @@ OSC::get_unix_server_url()
return url;
}
void
OSC::gui_changed ()
{
session->set_dirty();
}
void
OSC::listen_to_route (boost::shared_ptr<Stripable> strip, lo_address addr)
{

View File

@ -153,6 +153,7 @@ class OSC : public ARDOUR::ControlProtocol, public AbstractUI<OSCUIRequest>
int get_defaultfeedback() { return default_feedback; }
void set_defaultfeedback (int fb) { default_feedback = fb; }
void clear_devices ();
void gui_changed ();
std::string get_remote_port () { return remote_port; }
void set_remote_port (std::string pt) { remote_port = pt; }

View File

@ -567,7 +567,8 @@ OSC_GUI::factory_reset ()
portmode_combo.set_active (0);
cp.set_remote_port ("8000");
port_entry.set_value (8000);
cp.clear_devices();
cp.clear_devices ();
cp.gui_changed ();
}
void
@ -807,6 +808,7 @@ OSC_GUI::save_user ()
error << string_compose ("MCP profile not saved to %1", fullpath) << endmsg;
}
preset_combo.set_active (2);
cp.gui_changed();
}
@ -880,6 +882,7 @@ OSC_GUI::load_preset (std::string preset)
cp.set_gainmode (atoi (prop->value().c_str()));
gainmode_combo.set_active (atoi (prop->value().c_str()));
}
cp.gui_changed();
}
}