summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-09-14 16:23:10 +0000
committerDavid Robillard <d@drobilla.net>2008-09-14 16:23:10 +0000
commit09cddbd89be960c40c3c3ddfca9adf996831acb1 (patch)
treebba877abf197860a5379da2167e450debcb48613
parentad74c0a1636fb5cd115f12cd05a1a774ac7d889d (diff)
downloadingen-09cddbd89be960c40c3c3ddfca9adf996831acb1.tar.gz
ingen-09cddbd89be960c40c3c3ddfca9adf996831acb1.tar.bz2
ingen-09cddbd89be960c40c3c3ddfca9adf996831acb1.zip
Fix crash on load location.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1495 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/libs/gui/ThreadedLoader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/gui/ThreadedLoader.cpp b/src/libs/gui/ThreadedLoader.cpp
index 24edc69a..008b14c4 100644
--- a/src/libs/gui/ThreadedLoader.cpp
+++ b/src/libs/gui/ThreadedLoader.cpp
@@ -108,7 +108,7 @@ ThreadedLoader::load_patch(bool merge,
engine_base = engine_parent.get().base();
}
- if (merge && (engine_parent.get() == "/" || !engine_parent))
+ if (merge && (!engine_parent || engine_parent.get() == "/"))
engine_base = engine_base.substr(0, engine_base.find_last_of("/"));
_events.push_back(sigc::hide_return(sigc::bind(