From 66c578fa8d692e38c5d6412b9709e113dff5ccac Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Mon, 12 Dec 2016 13:37:18 +0100 Subject: [PATCH] Write hasInternet to GlobalStorage. CAL-431 #close --- src/modules/welcome/checker/RequirementsChecker.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/welcome/checker/RequirementsChecker.cpp b/src/modules/welcome/checker/RequirementsChecker.cpp index 12f681720..3d7eb7da7 100644 --- a/src/modules/welcome/checker/RequirementsChecker.cpp +++ b/src/modules/welcome/checker/RequirementsChecker.cpp @@ -338,7 +338,9 @@ bool RequirementsChecker::checkHasInternet() { // default to true in the QNetworkAccessManager::UnknownAccessibility case - return QNetworkAccessManager(this).networkAccessible() != QNetworkAccessManager::NotAccessible; + bool hasInternet = QNetworkAccessManager(this).networkAccessible() != QNetworkAccessManager::NotAccessible; + Calamares::JobQueue::instance()->globalStorage()->insert( "hasInternet", hasInternet ); + return hasInternet; }