c++symbianexits60carbide

S60 application - Symbian C++ - Exit button doesn't work


In my Symbian S60 application, my Options menu works as expected. But the Exit button does nothing.

I am developing with Carbide and have used the UI Designer to add items to the options menu.

Does anyone know how to enable the exit button, or why else it might not work?

Thanks!


Solution

  • Are you handling (in your appui::HandleCommandL) command ids EEikCmdExit and EAknSoftkeyExit?

        if ( aCommand == EAknSoftkeyExit || aCommand == EEikCmdExit )
            {
            Exit();
            }