Showing the changes to interface/src/ui/ScriptEditorWindow.cpp (1 of 2 files). Show all
Unified · Split
| @@ -179,7 +179,7 @@ void ScriptEditorWindow::closeEvent(QCloseEvent *event) { · 178 unmodified lines | |||
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | void ScriptEditorWindow::updateScriptNameOrStatus() { | 181 | void ScriptEditorWindow::updateScriptNameOrStatus() { |
| 182 | ScriptEditorWidget* source = (ScriptEditorWidget*)QObject::sender(); | 182 | ScriptEditorWidget* source = static_cast<ScriptEditorWidget*>(QObject::sender()); |
| 183 | QString modifiedStar = (source->isModified()? "*" : ""); | 183 | QString modifiedStar = (source->isModified()? "*" : ""); |
| 184 | if (source->getScriptName().length() > 0) { | 184 | if (source->getScriptName().length() > 0) { |
| 185 | for (int i = 0; i < _ScriptEditorWindowUI->tabWidget->count(); i++){ | 185 | for (int i = 0; i < _ScriptEditorWindowUI->tabWidget->count(); i++){ |