bluetoothengine/btui/btuidelegate/btdelegatepower.cpp
changeset 51 625f43ae9362
parent 42 b72428996822
child 57 5ebadcda06cb
--- a/bluetoothengine/btui/btuidelegate/btdelegatepower.cpp	Tue Jul 27 13:42:03 2010 +0300
+++ b/bluetoothengine/btui/btuidelegate/btdelegatepower.cpp	Fri Aug 06 16:43:21 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;