| 1435 | } |
| 1436 | |
| 1437 | void Application::controllerFailed(const QString& error) |
| 1438 | { |
| 1439 | Q_UNUSED(error); |
| 1440 | auto controller = qobject_cast<LaunchController *>(QObject::sender()); |
| 1441 | if(!controller) |
| 1442 | return; |
| 1443 | auto id = controller->id(); |
| 1444 | auto & extras = m_instanceExtras[id]; |
| 1445 | |
| 1446 | // on failure, do... nothing |
| 1447 | extras.controller.reset(); |
| 1448 | subRunningInstance(); |
| 1449 | |
| 1450 | // quit when there are no more windows. |
| 1451 | if(shouldExitNow()) |
| 1452 | { |
| 1453 | m_status = Status::Failed; |
| 1454 | exit(1); |
| 1455 | } |
| 1456 | } |
| 1457 | |
| 1458 | void Application::ShowGlobalSettings(class QWidget* parent, QString open_page) |
| 1459 | { |