use the new JS script location

This commit is contained in:
Andrew Meadows 2016-04-26 11:20:08 -07:00
parent c0b446ca4b
commit 3d1abf8fb1
2 changed files with 2 additions and 2 deletions

View file

@ -269,7 +269,7 @@ endif (APPLE)
if (SCRIPTS_INSTALL_DIR)
# setup install of scripts beside interface executable
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/examples/"
DIRECTORY "${CMAKE_SOURCE_DIR}/scripts/"
DESTINATION ${SCRIPTS_INSTALL_DIR}/scripts
COMPONENT ${CLIENT_COMPONENT}
)

View file

@ -253,7 +253,7 @@ static const QString SETTINGS_KEY = "Settings";
void ScriptEngines::loadDefaultScripts() {
QUrl defaultScriptsLoc = defaultScriptsLocation();
defaultScriptsLoc.setPath(defaultScriptsLoc.path() + "/defaultScripts.js");
defaultScriptsLoc.setPath(defaultScriptsLoc.path() + "/default/defaultScripts.js");
loadScript(defaultScriptsLoc.toString());
}