| 1424 | } |
| 1425 | |
| 1426 | void App::tryUpdateEditorTitle( UICodeEditor* editor ) { |
| 1427 | bool isDirty = editor->getDocument().isDirty(); |
| 1428 | bool tabDirty = ( (UITab*)editor->getData() )->getText().lastChar() == '*'; |
| 1429 | |
| 1430 | if ( isDirty != tabDirty ) |
| 1431 | updateEditorTitle( editor ); |
| 1432 | } |
| 1433 | |
| 1434 | void App::onDocumentSelectionChange( UICodeEditor* editor, TextDocument& ) { |
| 1435 | tryUpdateEditorTitle( editor ); |
nothing calls this directly
no test coverage detected