| 1376 | } |
| 1377 | |
| 1378 | void Application::controllerFailed(const QString& error) |
| 1379 | { |
| 1380 | Q_UNUSED(error); |
| 1381 | auto controller = qobject_cast<LaunchController *>(QObject::sender()); |
| 1382 | if(!controller) |
| 1383 | return; |
| 1384 | auto id = controller->id(); |
| 1385 | auto & extras = m_instanceExtras[id]; |
| 1386 | |
| 1387 | // on failure, do... nothing |
| 1388 | extras.controller.reset(); |
| 1389 | subRunningInstance(); |
| 1390 | |
| 1391 | // quit when there are no more windows. |
| 1392 | if(shouldExitNow()) |
| 1393 | { |
| 1394 | m_status = Status::Failed; |
| 1395 | exit(1); |
| 1396 | } |
| 1397 | } |
| 1398 | |
| 1399 | void Application::ShowGlobalSettings(class QWidget* parent, QString open_page) |
| 1400 | { |