Showing the changes to libraries/script-engine/src/ScriptEngines.cpp (1 of 6 files). Show all
Unified · Split
| @@ -34,8 +34,7 @@ ScriptsModel& getScriptsModel() { · 33 unmodified lines | ||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | ScriptEngines::ScriptEngines() |
| 37 | − : _scriptsLocationHandle("scriptsLocation", DESKTOP_LOCATION), | |
| 38 | − _previousScriptLocation("LastScriptLocation", DESKTOP_LOCATION) | |
| 37 | + : _scriptsLocationHandle("scriptsLocation", DESKTOP_LOCATION) | |
| 39 | 38 | { |
| 40 | 39 | _scriptsModelFilter.setSourceModel(&_scriptsModel); |
| 41 | 40 | _scriptsModelFilter.sort(0, Qt::AscendingOrder); |
| @@ -445,14 +444,3 @@ void ScriptEngines::onScriptEngineError(const QString& scriptFilename) { · 403 unmodified lines | ||
| 445 | 444 | qCDebug(scriptengine) << "Application::loadScript(), script failed to load..."; |
| 446 | 445 | emit scriptLoadError(scriptFilename, ""); |
| 447 | 446 | } |
| 448 | − | |
| 449 | −QString ScriptEngines::getPreviousScriptLocation() const { | |
| 450 | − return _previousScriptLocation.get(); | |
| 451 | −} | |
| 452 | − | |
| 453 | −void ScriptEngines::setPreviousScriptLocation(const QString& previousScriptLocation) { | |
| 454 | − if (_previousScriptLocation.get() != previousScriptLocation) { | |
| 455 | − _previousScriptLocation.set(previousScriptLocation); | |
| 456 | − emit previousScriptLocationChanged(); | |
| 457 | − } | |
| 458 | −} | |