Showing the changes to libraries/script-engine/src/FileScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -71,18 +71,18 @@ bool FileScriptingInterface::isTempDir(QString tempDir) { · 70 unmodified lines | |||
| 71 | 71 | ||
| 72 | // checks whether the webview is displaying a Clara.io page for Marketplaces.qml | 72 | // checks whether the webview is displaying a Clara.io page for Marketplaces.qml |
| 73 | bool FileScriptingInterface::isClaraLink(QUrl url) { | 73 | bool FileScriptingInterface::isClaraLink(QUrl url) { |
| 74 | if (url.toString().contains("clara") && !url.toString().contains("clara.io/signup")) return true; | 74 | if (url.toString().contains("clara.io") && !url.toString().contains("clara.io/signup")) return true; |
| 75 | return false; | 75 | return false; |
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | // checks whether a user tries to download a file that is not in .fbx format | 78 | // checks whether a user tries to download a file that is not in .fbx format |
| 79 | bool FileScriptingInterface::isNotFbx(QUrl url) { | 79 | bool FileScriptingInterface::isNotFbx(QUrl url) { |
| 80 | if (url.toString().contains(".zip") && !(url.toString().contains("fbx") )) return true; | 80 | if (url.toString().endsWith(".zip") && !(url.toString().contains("fbx") )) return true; |
| 81 | return false; | 81 | return false; |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | bool FileScriptingInterface::isZippedFbx(QUrl url) { | 84 | bool FileScriptingInterface::isZippedFbx(QUrl url) { |
| 85 | if (url.toString().contains(".zip") && url.toString().contains("fbx")) return true; | 85 | if (url.toString().endsWith("fbx.zip")) return true; |
| 86 | return false; | 86 | return false; |
| 87 | } | 87 | } |
| 88 | 88 | ||