Showing the changes to interface/src/ui/ScriptEditorWindow.cpp (1 of 4 files). Show all
Unified · Split
| @@ -180,11 +180,11 @@ void ScriptEditorWindow::closeEvent(QCloseEvent *event) { · 179 unmodified lines | ||
| 180 | 180 | |
| 181 | 181 | void ScriptEditorWindow::updateScriptNameOrStatus() { |
| 182 | 182 | ScriptEditorWidget* source = (ScriptEditorWidget*)QObject::sender(); |
| 183 | − QString modifiedStar = (source->isModified()?"*":""); | |
| 183 | + QString modifiedStar = (source->isModified()? "*" : ""); | |
| 184 | 184 | if (source->getScriptName().length() > 0) { |
| 185 | 185 | for (int i = 0; i < _ScriptEditorWindowUI->tabWidget->count(); i++){ |
| 186 | 186 | if (_ScriptEditorWindowUI->tabWidget->widget(i) == source) { |
| 187 | − _ScriptEditorWindowUI->tabWidget->setTabText(i,modifiedStar + QFileInfo(source->getScriptName()).fileName()); | |
| 187 | + _ScriptEditorWindowUI->tabWidget->setTabText(i, modifiedStar + QFileInfo(source->getScriptName()).fileName()); | |
| 188 | 188 | _ScriptEditorWindowUI->tabWidget->setTabToolTip(i, source->getScriptName()); |
| 189 | 189 | } |
| 190 | 190 | } |