bluetoothengine/btui/btuidelegate/btdelegatepower.cpp
changeset 52 4545c04e61e1
parent 41 0b2439c3e397
child 63 bcf742120177
--- a/bluetoothengine/btui/btuidelegate/btdelegatepower.cpp	Tue Jul 06 14:27:09 2010 +0300
+++ b/bluetoothengine/btui/btuidelegate/btdelegatepower.cpp	Wed Aug 18 09:59:05 2010 +0300
@@ -91,7 +91,7 @@
         if (btEnabledInOffline){
             // BT is allowed to be enabled in offline mode, show query.
             HbMessageBox::question( hbTrId("txt_bt_info_trun_bluetooth_on_ini_offline_mode" ),this, 
-				SLOT(btOnQuestionClose(HbAction*)));
+							SLOT(btOnQuestionClose(int)), HbMessageBox::Yes | HbMessageBox::No );
 
         }
         else{
@@ -113,11 +113,10 @@
     
 }
 
-void BtDelegatePower::btOnQuestionClose(HbAction *action)
+void BtDelegatePower::btOnQuestionClose(int action)
 {
-    HbMessageBox *dlg = static_cast<HbMessageBox*>(sender());
     int err = 0;
-    if(action == dlg->actions().at(0)) 
+    if(action == HbMessageBox::Yes) 
     {
         //user chooses "yes" for using BT in offline 
         mActiveHandling = true;