| 478 | } |
| 479 | |
| 480 | void UiController::cleanup() |
| 481 | { |
| 482 | for (Sublime::MainWindow* w : mainWindows()) { |
| 483 | w->saveSettings(); |
| 484 | } |
| 485 | saveAllAreas(KSharedConfig::openConfig()); |
| 486 | |
| 487 | // disconnect early to prevent UB due to accessing partially destroyed UiController |
| 488 | // in the focusChanged handler above |
| 489 | disconnect(qApp, nullptr, this, nullptr); |
| 490 | } |
| 491 | |
| 492 | void UiController::selectNewToolViewToAdd(MainWindow *mw) |
| 493 | { |
nothing calls this directly
no test coverage detected