diff --git a/recovery/mainwindow.cpp b/recovery/mainwindow.cpp index 313ba4b3..e45af547 100644 --- a/recovery/mainwindow.cpp +++ b/recovery/mainwindow.cpp @@ -164,6 +164,8 @@ MainWindow::MainWindow(const QString &defaultDisplay, QSplashScreen *splash, QWi { _showAll = true; } + + _networkOK = true; if (cmdline.contains("silentinstall")) { /* If silentinstall is specified, auto-install single image in /os */ @@ -1067,6 +1069,8 @@ void MainWindow::downloadListComplete() { if (_qpd) _qpd->hide(); + _networkOK = false; + QMessageBox::critical(this, tr("Download error"), tr("Error downloading distribution list from Internet"), QMessageBox::Close); } else @@ -1518,7 +1522,7 @@ void MainWindow::hideDialogIfNoNetwork() { if (_qpd) { - if (!isOnline()) + if (!isOnline() || !_networkOK) { /* No network cable inserted */ _qpd->hide(); diff --git a/recovery/mainwindow.h b/recovery/mainwindow.h index 802de809..94d514aa 100644 --- a/recovery/mainwindow.h +++ b/recovery/mainwindow.h @@ -47,6 +47,7 @@ class MainWindow : public QMainWindow QSplashScreen *_splash; QSettings *_settings; bool _hasWifi; + bool _networkOK; int _numInstalledOS; QNetworkAccessManager *_netaccess; int _neededMB, _availableMB, _numMetaFilesToDownload, _numIconsToDownload;