satui/satapp/src/satappserverdispatcher.cpp
changeset 35 6aefa3341fcc
parent 33 8d5d7fcf9b59
--- a/satui/satapp/src/satappserverdispatcher.cpp	Wed Jul 21 18:26:52 2010 +0300
+++ b/satui/satapp/src/satappserverdispatcher.cpp	Fri Jul 23 12:32:49 2010 +0300
@@ -124,30 +124,6 @@
 }
 
 // ----------------------------------------------------------------------------
-// SatAppServerDispatcher::ProfileState
-// Get the profile status
-// ----------------------------------------------------------------------------
-//
-TInt SatAppServerDispatcher::ProfileState()
-    {
-    qDebug("SATAPP: SatAppServerDispatcher::ProfileState");
-    TInt profileId(0);
-    CRepository* cr (NULL);
-
-    TRAPD(err, cr = CRepository::NewL(KCRUidProfileEngine));
-    if ( KErrNone == err )
-        {
-        // Get the ID of the currently active profile:
-        const TInt error = cr->Get(KProEngActiveProfile, profileId);
-        qDebug("SATAPP: SatAppServerDispatcher::ProfileState error=%d",
-                error);
-        delete cr;
-        }
-
-    return profileId;
-    }
-
-// ----------------------------------------------------------------------------
 // My own quick string -> descriptor conversion function :-)
 // ----------------------------------------------------------------------------
 //
@@ -325,8 +301,7 @@
     QT_TRYCATCH_LEAVING(
 
         // validate
-        if (!aMenuItems.MdcaCount() ||
-            (KSatActiveProfileOffline == ProfileState())) {
+        if (!aMenuItems.MdcaCount()) {
             emit clearScreen();
             QCoreApplication::instance()->quit();
             return ESatSuccess;