summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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(