diff -r 065f1826587f -r b31261fd4e04 mmsharing/mmshui/src/musuisendview.cpp --- a/mmsharing/mmshui/src/musuisendview.cpp Thu Jan 07 12:45:29 2010 +0200 +++ b/mmsharing/mmshui/src/musuisendview.cpp Tue Feb 02 00:09:07 2010 +0200 @@ -61,12 +61,16 @@ { MUS_LOG_TDESC( "mus: [MUSUI ] -> CMusUiSendView::ManualAddressEntryL: ", aAddress ); - - TBuf address( aAddress ); + + CAknAppUiBase::TAppUiOrientation aOrientation ; + + TBuf address( aAddress ); if ( SendController() && MusUiDialogUtil::ShowTextQueryDialogL( R_MUS_TEXT_ENTER_ADDRESS_DIALOG_PROMPT, address ) ) { + //to get the AppOrientation before sending invatation + aOrientation = MusAppUi()->AppOrientation(); SendController()->InviteL( address ); } else @@ -76,7 +80,10 @@ MusAppUi()->HandleExit(); } - SendController()->ChangeOrientationL( iSavedOrientation ); + if( aOrientation != iSavedOrientation) + { + SendController()->ChangeOrientationL( iSavedOrientation ); + } MUS_LOG( "mus: [MUSUI ] <- CMusUiSendView::ManualAddressEntryL" ); }