This commit is contained in:
Seth Alves 2016-03-29 13:45:09 -07:00
parent 0c72ca1be3
commit 51cf854863

View file

@ -194,7 +194,7 @@ void ScriptsModel::downloadFinished() {
qCDebug(scriptengine) << "Error: Received no data when loading default scripts";
}
} else {
qDebug() << "error is" << reply->error();
qDebug() << "Error: when loading default scripts --" << reply->error();
}
reply->deleteLater();
@ -228,7 +228,6 @@ bool ScriptsModel::parseXML(QByteArray xmlFile) {
if (xml.tokenType() == QXmlStreamReader::StartElement && xml.name() == KEY_NAME) {
xml.readNext();
lastKey = xml.text().toString();
qDebug() << "lastKey = " << lastKey;
if (jsRegex.exactMatch(xml.text().toString())) {
_treeNodes.append(new TreeNodeScript(lastKey.mid(MODELS_LOCATION.length()),
defaultScriptsLocation() + "/" + lastKey,