diff --git a/tdecore/networkbackends/network-manager/network-manager.cpp b/tdecore/networkbackends/network-manager/network-manager.cpp index 3a303237b..57ae8672d 100644 --- a/tdecore/networkbackends/network-manager/network-manager.cpp +++ b/tdecore/networkbackends/network-manager/network-manager.cpp @@ -1240,14 +1240,14 @@ TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags TDENetworkConnectionM if (error.isValid()) { // Error! PRINT_ERROR(error.name()) - return TDENetworkGlobalManagerFlags::Unknown; + return TDENetworkGlobalManagerFlags::BackendUnavailable; } else { return nmGlobalStateToTDEGlobalState(ret); } } else { - return TDENetworkGlobalManagerFlags::Unknown; + return TDENetworkGlobalManagerFlags::BackendUnavailable; } } diff --git a/tdecore/tdenetworkconnections.cpp b/tdecore/tdenetworkconnections.cpp index 96da418e7..71132825e 100644 --- a/tdecore/tdenetworkconnections.cpp +++ b/tdecore/tdenetworkconnections.cpp @@ -680,7 +680,7 @@ TDEGlobalNetworkManager::~TDEGlobalNetworkManager() { } TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags TDEGlobalNetworkManager::backendStatus() { - if (!m_internalConnectionManager) return TDENetworkGlobalManagerFlags::Unknown; + if (!m_internalConnectionManager) return TDENetworkGlobalManagerFlags::BackendUnavailable; return m_internalConnectionManager->backendStatus(); } diff --git a/tdecore/tdenetworkconnections.h b/tdecore/tdenetworkconnections.h index e13484262..92e5e5cb5 100644 --- a/tdecore/tdenetworkconnections.h +++ b/tdecore/tdenetworkconnections.h @@ -185,6 +185,7 @@ namespace TDENetworkGlobalManagerFlags { SiteLocalAccess = 0x00000020, GlobalAccess = 0x00000040, Sleeping = 0x00000080, + BackendUnavailable = 0x00000100 }; CREATE_FLAG_BITWISE_MANIPULATION_FUNCTIONS(TDENetworkGlobalManagerFlags)