Dear all,
I have an application where one of the menu item of my view is connect.
Inside the emulator, when I select Connect, I start a network connection.
Then, as expected a dialog box pops up, inviting me to select the connection to use.
But at the end I got another 'connect' event menu in my HandleCommandL method. I'm not sure it's coming of the click on the connection window, but I have absolutely no clue why I got the command twice in a row.

I take car of using Id menu starting from 0x6001 to avoid clash.
I don't know how to debug why I got the command twice.
For now my HandleCommen in my Appui is pretty straigthforward:
void COtAppUi::HandleCommandL( TInt aCommand )
{
switch( aCommand )
{
case EEikCmdExit:
case EAknSoftkeyExit:
Exit();
break;

case ESettings:
ActivateLocalViewL( COtSettingsView::KViewId );
break;

case EAknSoftkeyBack:
//
// If the settings view is currently displayed, then we just come
// back to the roster
//
if ( iActivatedView == COtSettingsView::KViewId ) {
ActivateLocalViewL( COtRosterView::KViewId );
}
break;

case EConnect:
if ( iJ -> IsConnected() ) {
JDisconnectL();
} else {
JConnectL();
}
break;

default:
Panic( EOtUi );
break;
}
}


Thanks for your help

Arnaud