src/gui/kernel/qsoftkeymanager_s60.cpp
branchRCL_3
changeset 13 cc75c76972ee
parent 12 25a739ee40f4
child 14 c0432d11811c
equal deleted inserted replaced
12:25a739ee40f4 13:cc75c76972ee
    76     //    2.1. Except if thre is no current CBA at all and WindowSoftkeysRespondHint is set
    76     //    2.1. Except if thre is no current CBA at all and WindowSoftkeysRespondHint is set
    77 
    77 
    78     // Note: Cannot use IsDisplayingMenuOrDialog since CBA update can be triggered before
    78     // Note: Cannot use IsDisplayingMenuOrDialog since CBA update can be triggered before
    79     // menu/dialog CBA is actually displayed i.e. it is being costructed.
    79     // menu/dialog CBA is actually displayed i.e. it is being costructed.
    80     CEikButtonGroupContainer *appUiCba = S60->buttonGroupContainer();
    80     CEikButtonGroupContainer *appUiCba = S60->buttonGroupContainer();
    81     if (!appUiCba)
       
    82         return true;
       
    83     // CEikButtonGroupContainer::Current returns 0 if CBA is not visible at all
    81     // CEikButtonGroupContainer::Current returns 0 if CBA is not visible at all
    84     CEikButtonGroupContainer *currentCba = CEikButtonGroupContainer::Current();
    82     CEikButtonGroupContainer *currentCba = CEikButtonGroupContainer::Current();
    85     // Check if softkey need to be update even they are not visible
    83     // Check if softkey need to be update even they are not visible
    86     bool cbaRespondsWhenInvisible = false;
    84     bool cbaRespondsWhenInvisible = false;
    87     QWidget *window = QApplication::activeWindow();
    85     QWidget *window = QApplication::activeWindow();