diff options
author | David Robillard <d@drobilla.net> | 2015-03-16 22:50:11 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-03-16 22:50:11 +0000 |
commit | c83c763732b2f493aa451db3390c38aafa1eaa15 (patch) | |
tree | 7420bb46b6a44bfee5bb3b1b6b4952438758a8bb /src/ingen | |
parent | 7ff9df761e4a7084d69016ad5d15517b02e9bb3c (diff) | |
download | ingen-c83c763732b2f493aa451db3390c38aafa1eaa15.tar.gz ingen-c83c763732b2f493aa451db3390c38aafa1eaa15.tar.bz2 ingen-c83c763732b2f493aa451db3390c38aafa1eaa15.zip |
Fix launching GUI with no engine.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5640 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/ingen')
-rw-r--r-- | src/ingen/ingen.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ingen/ingen.cpp b/src/ingen/ingen.cpp index a63b4196..1c6f8af6 100644 --- a/src/ingen/ingen.cpp +++ b/src/ingen/ingen.cpp @@ -134,8 +134,12 @@ main(int argc, char** argv) (fmt("Invalid URI <%1%>") % uri).str().c_str()); SPtr<Interface> client(new Client::ThreadedSigClientInterface(1024)); engine_interface = world->new_interface(Raul::URI(uri), client); - ingen_try(bool(engine_interface), - (fmt("Unable to create interface to `%1%'") % uri).str().c_str()); + + if (!engine_interface && !conf.option("gui").get<int32_t>()) { + cerr << fmt("ingen: Error: Unable to create interface to `%1%'\n"); + delete world; + exit(EXIT_FAILURE); + } } world->set_interface(engine_interface); |