mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
fixed return statement formatting
This commit is contained in:
parent
18700d6397
commit
6721cc8dfb
1 changed files with 4 additions and 8 deletions
|
@ -65,25 +65,21 @@ bool FileScriptingInterface::isTempDir(QString tempDir) {
|
||||||
folderName = "/" + testDir.section("/", -1);
|
folderName = "/" + testDir.section("/", -1);
|
||||||
QString testContainer = testDir;
|
QString testContainer = testDir;
|
||||||
testContainer.remove(folderName);
|
testContainer.remove(folderName);
|
||||||
if (testContainer == tempContainer) return true;
|
return (testContainer == tempContainer);
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// checks whether the webview is displaying a Clara.io page for Marketplaces.qml
|
// checks whether the webview is displaying a Clara.io page for Marketplaces.qml
|
||||||
bool FileScriptingInterface::isClaraLink(QUrl url) {
|
bool FileScriptingInterface::isClaraLink(QUrl url) {
|
||||||
if (url.toString().contains("clara.io") && !url.toString().contains("clara.io/signup")) return true;
|
return (url.toString().contains("clara.io") && !url.toString().contains("clara.io/signup"));
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// checks whether a user tries to download a file that is not in .fbx format
|
// checks whether a user tries to download a file that is not in .fbx format
|
||||||
bool FileScriptingInterface::isNotFbx(QUrl url) {
|
bool FileScriptingInterface::isNotFbx(QUrl url) {
|
||||||
if (url.toString().endsWith(".zip") && !(url.toString().contains("fbx") )) return true;
|
return (url.toString().endsWith(".zip") && !(url.toString().contains("fbx") ));
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FileScriptingInterface::isZippedFbx(QUrl url) {
|
bool FileScriptingInterface::isZippedFbx(QUrl url) {
|
||||||
if (url.toString().endsWith("fbx.zip")) return true;
|
return (url.toString().endsWith("fbx.zip"));
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// this function is not in use
|
// this function is not in use
|
||||||
|
|
Loading…
Reference in a new issue