comparison src/main.cpp @ 154:ef4edd798a45

Disable network availability check for now, it seems to return false values in some cases.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 28 Aug 2017 13:06:10 +0300
parents 794a2387e92a
children 6187c36de250
comparison
equal deleted inserted replaced
153:794a2387e92a 154:ef4edd798a45
483 #ifdef USE_QTHTTP 483 #ifdef USE_QTHTTP
484 // Check for network access 484 // Check for network access
485 httpBackupReply = NULL; 485 httpBackupReply = NULL;
486 486
487 QNetworkAccessManager *manager = new QNetworkAccessManager(); 487 QNetworkAccessManager *manager = new QNetworkAccessManager();
488 /*
488 if (manager->networkAccessible() != QNetworkAccessManager::Accessible) 489 if (manager->networkAccessible() != QNetworkAccessManager::Accessible)
489 { 490 {
490 slLog("ERROR", QStringLiteral("Network not available, cannot backup the database.")); 491 slLog("ERROR", QStringLiteral("Network not available, cannot backup the database."));
491 return; 492 return;
492 } 493 }
494 */
493 495
494 // Attempt to open the database file 496 // Attempt to open the database file
495 QFile *file = new QFile(dbFilename); 497 QFile *file = new QFile(dbFilename);
496 if (!file->open(QIODevice::ReadOnly)) 498 if (!file->open(QIODevice::ReadOnly))
497 { 499 {