phoneuis/vmbx/src/VmAppUi.cpp
branchRCL_3
changeset 20 3c221667e687
parent 0 5f000ab63145
--- a/phoneuis/vmbx/src/VmAppUi.cpp	Wed Jun 09 09:41:11 2010 +0300
+++ b/phoneuis/vmbx/src/VmAppUi.cpp	Mon Jun 21 15:39:45 2010 +0300
@@ -154,26 +154,16 @@
 
     iTextExit = iEikonEnv->AllocReadResourceL( R_MENU_EXIT );
 
-    if ( !iAppContainer->IsVideoSupported() )
+    if ( !IsIpVoiceMailboxServices() && 
+        ( ( !iAppContainer->Number().Length() &&
+        !iAppContainer->VideoNumber().Length() ) || 
+        ( !iAppContainer->Number().Length() && 
+        !iAppContainer->IsVideoSupported() ) ) )
         {
         // If the vmbx number is not defined, query it as soon as
         // the app has been fully constructed.
-        if ( !iAppContainer->Number().Length() &&
-             !IsIpVoiceMailboxServices() )
-            {
-            // Query cs vmbx number since ip vmbx address cannot be asked
-            iAppContainer->QueryNumberL( EVmbxNotDefinedQuery );
-            }
-        }
-    else
-        {
-        if ( !iAppContainer->Number().Length() &&
-             !iAppContainer->VideoNumber().Length() &&
-             !IsIpVoiceMailboxServices() )
-            {
-            iQueryLauncher = CVmQueryLauncher::NewL( *iAppContainer, *this );
-            iAppUiState = ELauncherQueryingNumber;
-            }
+        iQueryLauncher = CVmQueryLauncher::NewL( *iAppContainer, *this );
+        iAppUiState = ELauncherQueryingNumber;
         }
 
     DrawCbaButtonsL();