Showing the changes to interface/src/ui/ScriptEditorWidget.cpp (1 of 12 files). Show all
Unified · Split
| @@ -158,6 +158,8 @@ void ScriptEditorWidget::loadFile(const QString& scriptPath) { · 157 unmodified lines | |||
| 158 | QObject::connect(reply, &QNetworkReply::finished, &loop, &QEventLoop::quit); | 158 | QObject::connect(reply, &QNetworkReply::finished, &loop, &QEventLoop::quit); |
| 159 | loop.exec(); | 159 | loop.exec(); |
| 160 | _scriptEditorWidgetUI->scriptEdit->setPlainText(reply->readAll()); | 160 | _scriptEditorWidgetUI->scriptEdit->setPlainText(reply->readAll()); |
| 161 | delete reply; | ||
| 162 | |||
| 161 | if (!saveAs()) { | 163 | if (!saveAs()) { |
| 162 | static_cast<ScriptEditorWindow*>(this->parent()->parent()->parent())->terminateCurrentTab(); | 164 | static_cast<ScriptEditorWindow*>(this->parent()->parent()->parent())->terminateCurrentTab(); |
| 163 | } | 165 | } |