Commit cf8aa0bd authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use isOnline method

parent 9e75a760
Pipeline #124347 passed with stage
in 7 minutes and 56 seconds
......@@ -137,7 +137,7 @@ KMKernel::KMKernel(QObject *parent)
#ifdef WITH_KUSERFEEDBACK
mUserFeedbackProvider = new KMailUserFeedbackProvider(this);
#endif
mSystemNetworkStatus = PimCommon::NetworkManager::self()->networkConfigureManager()->isOnline();
mSystemNetworkStatus = PimCommon::NetworkManager::self()->isOnline();
Akonadi::AttributeFactory::registerAttribute<Akonadi::SearchDescriptionAttribute>();
QDBusConnection::sessionBus().registerService(QStringLiteral("org.kde.kmail"));
......@@ -885,8 +885,7 @@ void KMKernel::resumeNetworkJobs()
bool KMKernel::isOffline()
{
if ((KMailSettings::self()->networkState() == KMailSettings::EnumNetworkState::Offline)
|| !PimCommon::NetworkManager::self()->networkConfigureManager()->isOnline()) {
if ((KMailSettings::self()->networkState() == KMailSettings::EnumNetworkState::Offline) || !PimCommon::NetworkManager::self()->isOnline()) {
return true;
} else {
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment