History

Per Austin's comments.

NissimHadar committed 8 years ago

Commit eb146581 parent 0206de05 files · +33 −35Browse files

Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all

Unified · Split

interface/src/Application.cpp+2−2
@@ -1022,9 +1022,9 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 1021 unmodified lines
10221022 if (args.at(i) == TEST_SCRIPT_COMMAND && (i + 1) < args.size()) {
10231023 QString testScriptPath = args.at(i + 1);
10241024
1025− // If the URL scheme is "http(s)" then use as is, else - treat it as a local file
1025+ // If the URL scheme is http(s) or ftp, then use as is, else - treat it as a local file
10261026 // This is done so as not break previous command line scripts
1027− if (testScriptPath.left(4) == "http") {
1027+ if (testScriptPath.left(URL_SCHEME_HTTP.length()) == URL_SCHEME_HTTP || testScriptPath.left(URL_SCHEME_FTP.length()) == URL_SCHEME_FTP) {
10281028 setProperty(hifi::properties::TEST, QUrl::fromUserInput(testScriptPath));
10291029 } else if (QFileInfo(testScriptPath).exists()) {
10301030 setProperty(hifi::properties::TEST, QUrl::fromLocalFile(testScriptPath));