--- a/phonesettings/cpphonesettingsplugins/cptelephonyutils/src/cpplugincommon.cpp Fri Aug 06 13:16:44 2010 +0300
+++ b/phonesettings/cpphonesettingsplugins/cptelephonyutils/src/cpplugincommon.cpp Mon Aug 23 15:42:12 2010 +0300
@@ -271,7 +271,11 @@
bool CpSettingsWrapper::isPhoneOffline() const
{
- return QSystemDeviceInfo::OfflineProfile == m_deviceInfo->currentProfile();
+ bool networkConnectionAllowed = readCenrepValue(KCRUidCoreApplicationUIs.iUid,
+ KCoreAppUIsNetworkConnectionAllowed).toBool();
+ // 0 = Offline Mode, 1 = Online Mode
+ DPRINT << "networkConnectionAllowed: " << networkConnectionAllowed;
+ return !networkConnectionAllowed;
}
bool CpSettingsWrapper::isOngoingCall() const