| 337 | } |
| 338 | |
| 339 | void Manager::settings() |
| 340 | { |
| 341 | SettingsEditor editor(*this, *updater_); |
| 342 | |
| 343 | SOFT_ASSERT(settings_, return ); |
| 344 | editor.setSettings(*settings_); |
| 345 | |
| 346 | tray_->blockActions(true); |
| 347 | auto result = editor.exec(); |
| 348 | tray_->blockActions(false); |
| 349 | |
| 350 | if (result != QDialog::Accepted) |
| 351 | return; |
| 352 | |
| 353 | tray_->resetFatalError(); |
| 354 | |
| 355 | const auto edited = editor.settings(); |
| 356 | applySettings(edited); |
| 357 | } |
| 358 | |
| 359 | void Manager::showLast() |
| 360 | { |
no test coverage detected