From dec8f83f342ed76611d7dff156ab29b8df554a00 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 7 Apr 2007 00:52:22 +0000 Subject: Fix for overly loopy connections over short distances. Auto-arrange support for modules/ports. Added auto-arrange to Patchage and Ingen. git-svn-id: http://svn.drobilla.net/lad/patchage@408 a436a847-0d15-0410-975c-d299462d15a1 --- src/LashDriver.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/LashDriver.cpp') diff --git a/src/LashDriver.cpp b/src/LashDriver.cpp index 1608139..db8a51d 100644 --- a/src/LashDriver.cpp +++ b/src/LashDriver.cpp @@ -56,11 +56,8 @@ LashDriver::attach(bool launch_daemon) _args, PACKAGE_NAME, lash_flags); if (_server_interface) { - /*_server_interface->signal_save_file.connect(sigc::mem_fun(this, LashDriver::on_save_file)); - _server_interface->signal_restore_file.connect(sigc::mem_fun(this, LashDriver::on_restore_file)); - _server_interface->signal_quit.connect(sigc::mem_fun(this, LashDriver::on_quit));*/ _server_interface->signal_project_add.connect(sigc::mem_fun(this, &LashDriver::on_project_add)); - + _server_interface->signal_quit.connect(sigc::mem_fun(this, &LashDriver::on_quit)); signal_attached.emit(); _app->status_message("[LASH] Attached"); } else { @@ -82,6 +79,8 @@ void LashDriver::on_project_add(const SharedPtr project) { _project_name = project->name(); + project->signal_save_file.connect(sigc::mem_fun(this, &LashDriver::on_save_file)); + project->signal_restore_file.connect(sigc::mem_fun(this, &LashDriver::on_restore_file)); } -- cgit v1.2.1