summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/ConnectWindow.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-16 19:55:29 +0000
committerDavid Robillard <d@drobilla.net>2008-08-16 19:55:29 +0000
commit491762bb487e1007f11cdc4dc7c01b03e3bd0d9d (patch)
treeebf3936a1af25cae39c7c764c31c413d07b2c5f4 /src/libs/gui/ConnectWindow.cpp
parent5dbceccbd00d396830998aaaea4f2d9840f8cda8 (diff)
downloadingen-491762bb487e1007f11cdc4dc7c01b03e3bd0d9d.tar.gz
ingen-491762bb487e1007f11cdc4dc7c01b03e3bd0d9d.tar.bz2
ingen-491762bb487e1007f11cdc4dc7c01b03e3bd0d9d.zip
Fix ingen -c
git-svn-id: http://svn.drobilla.net/lad/ingen@1405 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui/ConnectWindow.cpp')
-rw-r--r--src/libs/gui/ConnectWindow.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/libs/gui/ConnectWindow.cpp b/src/libs/gui/ConnectWindow.cpp
index 8348126b..f1b0912a 100644
--- a/src/libs/gui/ConnectWindow.cpp
+++ b/src/libs/gui/ConnectWindow.cpp
@@ -84,7 +84,7 @@ ConnectWindow::start(Ingen::Shared::World* world)
set_connected_to(world->engine);
- connect();
+ connect(true);
}
@@ -154,7 +154,7 @@ ConnectWindow::set_connecting_widget_states()
* the App with them.
*/
void
-ConnectWindow::connect()
+ConnectWindow::connect(bool existing)
{
assert(!_attached);
assert(!App::instance().client());
@@ -165,8 +165,10 @@ ConnectWindow::connect()
Ingen::Shared::World* world = App::instance().world();
if (_mode == CONNECT_REMOTE) {
- const string url = (_widgets_loaded ? _url_entry->get_text() : "osc.udp://localhost:16180");
- world->engine = SharedPtr<EngineInterface>(new OSCEngineSender(url));
+ if (!existing) {
+ const string url = (_widgets_loaded ? _url_entry->get_text() : "osc.udp://localhost:16180");
+ world->engine = SharedPtr<EngineInterface>(new OSCEngineSender(url));
+ }
OSCSigEmitter* ose = new OSCSigEmitter(1024, 16181); // FIXME: args
SharedPtr<ThreadedSigClientInterface> client(ose);
@@ -282,7 +284,8 @@ ConnectWindow::load_widgets()
_launch_radio->signal_toggled().connect(sigc::mem_fun(this, &ConnectWindow::launch_toggled));
_internal_radio->signal_clicked().connect(sigc::mem_fun(this, &ConnectWindow::internal_toggled));
_disconnect_button->signal_clicked().connect(sigc::mem_fun(this, &ConnectWindow::disconnect));
- _connect_button->signal_clicked().connect(sigc::mem_fun(this, &ConnectWindow::connect));
+ _connect_button->signal_clicked().connect(sigc::bind(
+ sigc::mem_fun(this, &ConnectWindow::connect), false));
_quit_button->signal_clicked().connect(sigc::mem_fun(this, &ConnectWindow::quit));
_progress_bar->set_pulse_step(0.01);