| 1505 | } |
| 1506 | |
| 1507 | bool UICodeEditorSplitter::checkEditorExists( UICodeEditor* checkEditor ) const { |
| 1508 | bool found = false; |
| 1509 | forEachEditorStoppable( [&found, checkEditor]( UICodeEditor* editor ) { |
| 1510 | if ( editor == checkEditor ) { |
| 1511 | found = true; |
| 1512 | return true; |
| 1513 | } |
| 1514 | return false; |
| 1515 | } ); |
| 1516 | return found || checkEditor == nullptr || mAboutToAddEditor == checkEditor || mFirstCodeEditor; |
| 1517 | } |
| 1518 | |
| 1519 | bool UICodeEditorSplitter::isWidgetInAnyWidget( UIWidget* checkWidget ) const { |
| 1520 | bool found = false; |