ifdef out modified-with check (intended for livetrax)
This commit is contained in:
parent
8d14dbbe0c
commit
a7a7a55cce
@ -1790,13 +1790,14 @@ Session::set_state (const XMLNode& node, int version)
|
|||||||
created_with = "unknown";
|
created_with = "unknown";
|
||||||
if ((child = find_named_node (node, "ProgramVersion")) != 0) {
|
if ((child = find_named_node (node, "ProgramVersion")) != 0) {
|
||||||
child->get_property (X_("created-with"), created_with);
|
child->get_property (X_("created-with"), created_with);
|
||||||
#ifdef LIVETRAX
|
|
||||||
child->get_property (X_("modified-with"), modified_with);
|
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);
|
throw WrongProgram (modified_with);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef LIVETRAX
|
#ifdef LIVETRAX
|
||||||
else if (version != 3001) { // allow to load WTL sessions
|
else if (version != 3001) { // allow to load WTL sessions
|
||||||
error << string_compose (_("This is not a valid %1 session."), PROGRAM_NAME) << endmsg;
|
error << string_compose (_("This is not a valid %1 session."), PROGRAM_NAME) << endmsg;
|
||||||
|
Loading…
Reference in New Issue
Block a user