Skip to content
Open

test #36

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion installer/utils/mac_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ function fix_dependencies {
local short_id
local install_name
install_name=$(otool -D "$target" | tail -n +2 | grep -v '^@' || : )
if [[ -n "$install_name" ]] ; then
if [[ "$install_name" == "/usr/local"/* ]] ; then
short_id="@rpath/$(basename "$install_name")"
change="-id \"$short_id\""
elif [[ -n "$install_name" ]] ; then
short_id=$(grealpath -e --relative-to "$prefix" "$install_name" || echo "@rpath/"$(basename "$install_name"))
change="-id \"$short_id\""
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,16 @@ bool ConstraintsChecker::parseConstraints(const QDomElement &constraintsXml)
mEvents.clear();
mActiveEvents.clear();
mVariables.clear();

mCurrentXml = constraintsXml;
mParsedSuccessfully = mParser->parse(constraintsXml);

if (mParsedSuccessfully) {
auto importNode = mCurrentConstraintDocument.importNode(constraintsXml, true);
if (!importNode.isNull()) {
mCurrentXml = importNode.toElement();
mCurrentConstraintDocument.appendChild(mCurrentXml);
}
}

for (const QString &error : mParser->errors()) {
reportParserError(error);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ class ConstraintsChecker : public QObject

QList<details::Event *> mActiveEvents; //No ownership

QDomDocument mCurrentConstraintDocument;
QDomElement mCurrentXml;
bool mEnabled { true };
};
Expand Down
2 changes: 1 addition & 1 deletion qrtranslations/fr/plugins/robots/twoDModel_fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@
<context>
<name>twoDModel::constraints::ConstraintsChecker</name>
<message>
<location filename="../../../../plugins/robots/common/twoDModel/src/engine/constraints/constraintsChecker.cpp" line="+112"/>
<location filename="../../../../plugins/robots/common/twoDModel/src/engine/constraints/constraintsChecker.cpp" line="+118"/>
<source>Error while parsing constraints: %1</source>
<translation>Une erreur lors de l&apos;analyse des contraints est survenue : %1</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion qrtranslations/ru/plugins/robots/twoDModel_ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@
<context>
<name>twoDModel::constraints::ConstraintsChecker</name>
<message>
<location filename="../../../../plugins/robots/common/twoDModel/src/engine/constraints/constraintsChecker.cpp" line="+112"/>
<location filename="../../../../plugins/robots/common/twoDModel/src/engine/constraints/constraintsChecker.cpp" line="+118"/>
<source>Error while parsing constraints: %1</source>
<translation>Ошибка чтения ограничений: %1</translation>
</message>
Expand Down
Loading