uifw/AvKon/src/AknQueryDialog.cpp
branchRCL_3
changeset 72 a5e7a4f63858
parent 64 85902f042028
--- a/uifw/AvKon/src/AknQueryDialog.cpp	Wed Sep 15 12:29:17 2010 +0300
+++ b/uifw/AvKon/src/AknQueryDialog.cpp	Wed Oct 13 14:50:15 2010 +0300
@@ -428,10 +428,13 @@
 
     CAknsFrameBackgroundControlContext* cc = (CAknsFrameBackgroundControlContext*)AknsDrawUtils::ControlContext( this );
     cc->SetCenter(KAknsIIDQsnFrPopupCenterQuery);
-    
-    // Check Query is wait of not.
-    TBool isWaitDialog( ( DialogFlags() & EEikDialogFlagWait ) != 0 );
-
+
+    TBool isWaitDialog(EFalse);
+ 
+    if ( DialogFlags() & EEikDialogFlagWait )
+        {
+        isWaitDialog = ETrue;
+        }
     SetGloballyCapturing(ETrue); 
     TInt ret = CAknDialog::RunLD();
     _AKNTRACE( "[%s][%s] ret: %d", "CAknQueryDialog", __FUNCTION__, ret );
@@ -439,7 +442,7 @@
         {
         soundSystem->PopContext();
         }
-    // If wait QueryDialog, instance will be deleted right after RunLD via CBA
+ 
     if ( !isWaitDialog )
         {
         SetGloballyCapturing(EFalse); 
@@ -2121,10 +2124,6 @@
 				CEikCaptionedControl *ctrl2 = GetLineByLineAndPageIndex(line2, 0);
 				TryChangeFocusToL(ctrl2->iId);
                 HandleOrientationSwitch();
-                // In landscape mode, the first and second lines are at the same position, 
-                // so set the height of first line¡¯s control to 0 to prevent it from being 
-                // selected by touch event.
-                ctrl1->SetSize( TSize( ctrl1->Size().iWidth, 0 ) );
 
                 UpdateLeftSoftKeyL();
                 _AKNTRACE( "[%s][%s] return EFalse", "CAknMultiLineDataQueryDialog", __FUNCTION__);