diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index cceeb9a3e7..4c3af65e74 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -1790,13 +1790,14 @@ Session::set_state (const XMLNode& node, int version) created_with = "unknown"; if ((child = find_named_node (node, "ProgramVersion")) != 0) { child->get_property (X_("created-with"), created_with); -#ifdef LIVETRAX child->get_property (X_("modified-with"), modified_with); - if (modified_with.rfind (PROGRAM_NAME, 0) != 0) { +#ifdef LIVETRAX + if (modified_with.rfind (PROGRAM_NAME, 0) != 0) { throw WrongProgram (modified_with); } #endif } + #ifdef LIVETRAX else if (version != 3001) { // allow to load WTL sessions error << string_compose (_("This is not a valid %1 session."), PROGRAM_NAME) << endmsg;