History

cleanups

Seth Alves committed 10 years ago

Commit 51cf8541 parent 0c72ca11 file · +1 −2Browse files

Showing the changes to libraries/script-engine/src/ScriptsModel.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/ScriptsModel.cpp+1−2
@@ -194,7 +194,7 @@ void ScriptsModel::downloadFinished() { · 193 unmodified lines
194 qCDebug(scriptengine) << "Error: Received no data when loading default scripts";194 qCDebug(scriptengine) << "Error: Received no data when loading default scripts";
195 }195 }
196 } else {196 } else {
197 qDebug() << "error is" << reply->error();197 qDebug() << "Error: when loading default scripts --" << reply->error();
198 }198 }
199 199
200 reply->deleteLater();200 reply->deleteLater();
@@ -228,7 +228,6 @@ bool ScriptsModel::parseXML(QByteArray xmlFile) { · 27 unmodified lines
228 if (xml.tokenType() == QXmlStreamReader::StartElement && xml.name() == KEY_NAME) {228 if (xml.tokenType() == QXmlStreamReader::StartElement && xml.name() == KEY_NAME) {
229 xml.readNext();229 xml.readNext();
230 lastKey = xml.text().toString();230 lastKey = xml.text().toString();
231 qDebug() << "lastKey = " << lastKey;
232 if (jsRegex.exactMatch(xml.text().toString())) {231 if (jsRegex.exactMatch(xml.text().toString())) {
233 _treeNodes.append(new TreeNodeScript(lastKey.mid(MODELS_LOCATION.length()),232 _treeNodes.append(new TreeNodeScript(lastKey.mid(MODELS_LOCATION.length()),
234 defaultScriptsLocation() + "/" + lastKey,233 defaultScriptsLocation() + "/" + lastKey,