summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/App.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-05-01 05:53:04 +0000
committerDavid Robillard <d@drobilla.net>2007-05-01 05:53:04 +0000
commite19f2f14e830b016c27fc1369a34055a1764a0f5 (patch)
treef93446edfe8bafc692f7adf9355db43d6cdce0f9 /src/progs/ingenuity/App.cpp
parent3f94f9ccf13d08b8bf7acd786e0b894f01fb5175 (diff)
downloadingen-e19f2f14e830b016c27fc1369a34055a1764a0f5.tar.gz
ingen-e19f2f14e830b016c27fc1369a34055a1764a0f5.tar.bz2
ingen-e19f2f14e830b016c27fc1369a34055a1764a0f5.zip
GUI cleanups.
Fixed cancelling current connection attempt in engine window (w/ disconnect button). Automatically attempt to connect to running local server on the default port. git-svn-id: http://svn.drobilla.net/lad/ingen@488 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/App.cpp')
-rw-r--r--src/progs/ingenuity/App.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/progs/ingenuity/App.cpp b/src/progs/ingenuity/App.cpp
index e1e4912d..8ffcd710 100644
--- a/src/progs/ingenuity/App.cpp
+++ b/src/progs/ingenuity/App.cpp
@@ -120,13 +120,15 @@ App::attach(const SharedPtr<ModelEngineInterface>& engine, const SharedPtr<SigCl
void
App::detach()
{
- _window_factory->clear();
- _store->clear();
-
- _loader.reset();
- _store.reset();
- _client.reset();
- _engine.reset();
+ if (_engine) {
+ _window_factory->clear();
+ _store->clear();
+
+ _loader.reset();
+ _store.reset();
+ _client.reset();
+ _engine.reset();
+ }
}