Showing the changes to libraries/script-engine/src/ScriptsModel.cpp (1 of 2 files). Show all
Unified · Split
| @@ -40,7 +40,7 @@ TreeNodeBase::TreeNodeBase(TreeNodeFolder* parent, const QString& name, TreeNode · 39 unmodified lines | |||
| 40 | TreeNodeScript::TreeNodeScript(const QString& localPath, const QString& fullPath, ScriptOrigin origin) : | 40 | TreeNodeScript::TreeNodeScript(const QString& localPath, const QString& fullPath, ScriptOrigin origin) : |
| 41 | TreeNodeBase(NULL, localPath.split("/").last(), TREE_NODE_TYPE_SCRIPT), | 41 | TreeNodeBase(NULL, localPath.split("/").last(), TREE_NODE_TYPE_SCRIPT), |
| 42 | _localPath(localPath), | 42 | _localPath(localPath), |
| 43 | _fullPath(fullPath), | 43 | _fullPath(expandScriptUrl(QUrl(fullPath)).toString()), |
| 44 | _origin(origin) { | 44 | _origin(origin) { |
| 45 | }; | 45 | }; |
| 46 | 46 | ||
| @@ -163,10 +163,6 @@ void ScriptsModel::requestDefaultFiles(QString marker) { · 116 unmodified lines | |||
| 163 | if (localDir.endsWith("/")) { | 163 | if (localDir.endsWith("/")) { |
| 164 | localDirPartCount--; | 164 | localDirPartCount--; |
| 165 | } | 165 | } |
| 166 | qDebug() << "|"; | ||
| 167 | qDebug() << "|"; | ||
| 168 | qDebug() << "|"; | ||
| 169 | qDebug() << localDir; | ||
| 170 | #ifdef Q_OS_WIN | 166 | #ifdef Q_OS_WIN |
| 171 | localDirPartCount++; // one for the drive letter | 167 | localDirPartCount++; // one for the drive letter |
| 172 | #endif | 168 | #endif |