Showing the changes to interface/src/Application.cpp (1 of 42 files). Show all
Unified · Split
| @@ -851,7 +851,7 @@ void Application::showUrlHandler(const QUrl& url) { · 850 unmodified lines | |||
| 851 | } | 851 | } |
| 852 | 852 | ||
| 853 | ModalDialogListener* dlg = OffscreenUi::asyncQuestion("Confirm openUrl", "Do you recognize this path or code and want to open or execute it: " + url.toDisplayString()); | 853 | ModalDialogListener* dlg = OffscreenUi::asyncQuestion("Confirm openUrl", "Do you recognize this path or code and want to open or execute it: " + url.toDisplayString()); |
| 854 | QObject::connect(dlg, &ModalDialogListener::response, this, [=](QVariant answer) { | 854 | QObject::connect(dlg, &ModalDialogListener::response, this, [=, this](QVariant answer) { |
| 855 | QObject::disconnect(dlg, &ModalDialogListener::response, this, nullptr); | 855 | QObject::disconnect(dlg, &ModalDialogListener::response, this, nullptr); |
| 856 | if (QMessageBox::Yes == static_cast<QMessageBox::StandardButton>(answer.toInt())) { | 856 | if (QMessageBox::Yes == static_cast<QMessageBox::StandardButton>(answer.toInt())) { |
| 857 | // Unset the handler, open the URL, and the reset the handler | 857 | // Unset the handler, open the URL, and the reset the handler |
| @@ -1009,7 +1009,7 @@ void Application::loadServerlessDomain(QUrl domainURL) { · 151 unmodified lines | |||
| 1009 | return; | 1009 | return; |
| 1010 | } | 1010 | } |
| 1011 | 1011 | ||
| 1012 | connect(request, &ResourceRequest::finished, this, [=]() { | 1012 | connect(request, &ResourceRequest::finished, this, [=, this]() { |
| 1013 | if (request->getResult() == ResourceRequest::Success) { | 1013 | if (request->getResult() == ResourceRequest::Success) { |
| 1014 | auto namedPaths = prepareServerlessDomainContents(domainURL, request->getData()); | 1014 | auto namedPaths = prepareServerlessDomainContents(domainURL, request->getData()); |
| 1015 | auto nodeList = DependencyManager::get<NodeList>(); | 1015 | auto nodeList = DependencyManager::get<NodeList>(); |
| @@ -2484,7 +2484,7 @@ void Application::userKickConfirmation(const QUuid& nodeID, unsigned int banFlag · 1468 unmodified lines | |||
| 2484 | 2484 | ||
| 2485 | if (dlg->getDialogItem()) { | 2485 | if (dlg->getDialogItem()) { |
| 2486 | 2486 | ||
| 2487 | QObject::connect(dlg, &ModalDialogListener::response, this, [=] (QVariant answer) { | 2487 | QObject::connect(dlg, &ModalDialogListener::response, this, [=, this] (QVariant answer) { |
| 2488 | QObject::disconnect(dlg, &ModalDialogListener::response, this, nullptr); | 2488 | QObject::disconnect(dlg, &ModalDialogListener::response, this, nullptr); |
| 2489 | 2489 | ||
| 2490 | bool yes = (static_cast<QMessageBox::StandardButton>(answer.toInt()) == QMessageBox::Yes); | 2490 | bool yes = (static_cast<QMessageBox::StandardButton>(answer.toInt()) == QMessageBox::Yes); |