src/gui/kernel/qsoftkeymanager_s60.cpp
branchRCL_3
changeset 12 25a739ee40f4
parent 8 3f74d0d4af4c
child 13 cc75c76972ee
equal deleted inserted replaced
11:68d3b337861b 12:25a739ee40f4
    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;
    81     // CEikButtonGroupContainer::Current returns 0 if CBA is not visible at all
    83     // CEikButtonGroupContainer::Current returns 0 if CBA is not visible at all
    82     CEikButtonGroupContainer *currentCba = CEikButtonGroupContainer::Current();
    84     CEikButtonGroupContainer *currentCba = CEikButtonGroupContainer::Current();
    83     // Check if softkey need to be update even they are not visible
    85     // Check if softkey need to be update even they are not visible
    84     bool cbaRespondsWhenInvisible = false;
    86     bool cbaRespondsWhenInvisible = false;
    85     QWidget *window = QApplication::activeWindow();
    87     QWidget *window = QApplication::activeWindow();