Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -5252,7 +5252,8 @@ void Application::resumeAfterLoginDialogActionTaken() { · 5251 unmodified lines | ||
| 5252 | 5252 | // this will force the model the look at the correct directory (weird order of operations issue) |
| 5253 | 5253 | scriptEngines->reloadLocalFiles(); |
| 5254 | 5254 | |
| 5255 | − if (!_defaultScriptsLocation.exists()) { | |
| 5255 | + // if the --scripts command-line argument was used. | |
| 5256 | + if (!_defaultScriptsLocation.exists() && (arguments().indexOf(QString("--").append(SCRIPTS_SWITCH))) != -1) { | |
| 5256 | 5257 | scriptEngines->loadDefaultScripts(); |
| 5257 | 5258 | scriptEngines->defaultScriptsLocationOverridden(true); |
| 5258 | 5259 | } else { |