| 499 | } |
| 500 | |
| 501 | void MOApplication::resetForRestart() |
| 502 | { |
| 503 | LogModel::instance().clear(); |
| 504 | ResetExitFlag(); |
| 505 | |
| 506 | // make sure the log file isn't locked in case MO was restarted and |
| 507 | // the previous instance gets deleted |
| 508 | log::getDefault().setFile({}); |
| 509 | |
| 510 | // clear instance and profile overrides |
| 511 | InstanceManager::singleton().clearOverrides(); |
| 512 | |
| 513 | m_core = {}; |
| 514 | m_plugins = {}; |
| 515 | m_nexus = {}; |
| 516 | m_settings = {}; |
| 517 | m_instance = {}; |
| 518 | } |
| 519 | |
| 520 | bool MOApplication::setStyleFile(const QString& styleName) |
| 521 | { |
no test coverage detected