History

fix display of path of selected file in running-scripts window

Seth Alves committed 10 years ago

Commit 56b84b31 parent 35affe22 files · +1 −32Browse files

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

Unified · Split

libraries/script-engine/src/ScriptsModel.cpp+1−5
@@ -40,7 +40,7 @@ TreeNodeBase::TreeNodeBase(TreeNodeFolder* parent, const QString& name, TreeNode · 39 unmodified lines
40TreeNodeScript::TreeNodeScript(const QString& localPath, const QString& fullPath, ScriptOrigin origin) :40TreeNodeScript::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_WIN166 #ifdef Q_OS_WIN
171 localDirPartCount++; // one for the drive letter167 localDirPartCount++; // one for the drive letter
172 #endif168 #endif