mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 03:58:07 +02:00
cleanups
This commit is contained in:
parent
0c72ca1be3
commit
51cf854863
1 changed files with 1 additions and 2 deletions
|
@ -194,7 +194,7 @@ void ScriptsModel::downloadFinished() {
|
||||||
qCDebug(scriptengine) << "Error: Received no data when loading default scripts";
|
qCDebug(scriptengine) << "Error: Received no data when loading default scripts";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
qDebug() << "error is" << reply->error();
|
qDebug() << "Error: when loading default scripts --" << reply->error();
|
||||||
}
|
}
|
||||||
|
|
||||||
reply->deleteLater();
|
reply->deleteLater();
|
||||||
|
@ -228,7 +228,6 @@ bool ScriptsModel::parseXML(QByteArray xmlFile) {
|
||||||
if (xml.tokenType() == QXmlStreamReader::StartElement && xml.name() == KEY_NAME) {
|
if (xml.tokenType() == QXmlStreamReader::StartElement && xml.name() == KEY_NAME) {
|
||||||
xml.readNext();
|
xml.readNext();
|
||||||
lastKey = xml.text().toString();
|
lastKey = xml.text().toString();
|
||||||
qDebug() << "lastKey = " << lastKey;
|
|
||||||
if (jsRegex.exactMatch(xml.text().toString())) {
|
if (jsRegex.exactMatch(xml.text().toString())) {
|
||||||
_treeNodes.append(new TreeNodeScript(lastKey.mid(MODELS_LOCATION.length()),
|
_treeNodes.append(new TreeNodeScript(lastKey.mid(MODELS_LOCATION.length()),
|
||||||
defaultScriptsLocation() + "/" + lastKey,
|
defaultScriptsLocation() + "/" + lastKey,
|
||||||
|
|
Loading…
Reference in a new issue