| 1361 | } |
| 1362 | |
| 1363 | void Application::controllerFailed(const QString& error) |
| 1364 | { |
| 1365 | Q_UNUSED(error); |
| 1366 | auto controller = qobject_cast<LaunchController *>(QObject::sender()); |
| 1367 | if(!controller) |
| 1368 | return; |
| 1369 | auto id = controller->id(); |
| 1370 | auto & extras = m_instanceExtras[id]; |
| 1371 | |
| 1372 | // on failure, do... nothing |
| 1373 | extras.controller.reset(); |
| 1374 | subRunningInstance(); |
| 1375 | |
| 1376 | // quit when there are no more windows. |
| 1377 | if(shouldExitNow()) |
| 1378 | { |
| 1379 | m_status = Status::Failed; |
| 1380 | exit(1); |
| 1381 | } |
| 1382 | } |
| 1383 | |
| 1384 | void Application::ShowGlobalSettings(class QWidget* parent, QString open_page) |
| 1385 | { |