diff -r 9866e1d49556 -r 625f43ae9362 bluetoothengine/btui/btuidelegate/btdelegateconnect.cpp --- a/bluetoothengine/btui/btuidelegate/btdelegateconnect.cpp Tue Jul 27 13:42:03 2010 +0300 +++ b/bluetoothengine/btui/btuidelegate/btdelegateconnect.cpp Fri Aug 06 16:43:21 2010 +0300 @@ -162,8 +162,8 @@ QString questionText(hbTrId("txt_bt_info_to_connect_1_2_needs_to_be_disconnec") .arg(mDeviceName).arg(conflictDevName)); - HbMessageBox::question( questionText, this, SLOT(handleUserAnswer(HbAction*)), - hbTrId("txt_common_button_continue"), hbTrId("txt_common_button_cancel") ); + HbMessageBox::question( questionText, this, SLOT(handleUserAnswer(int)), + HbMessageBox::Continue | HbMessageBox::Cancel ); } } else { @@ -175,10 +175,9 @@ /*! * handle user response to query about disconnecting conflict device */ -void BtDelegateConnect::handleUserAnswer( HbAction* answer ) +void BtDelegateConnect::handleUserAnswer( int answer ) { - HbMessageBox* dlg = static_cast( sender() ); - if( dlg->actions().first() == answer ) { + if( answer == HbMessageBox::Continue ) { // Continue, ie. disconnect conflict device and then try reconnecting again if (!mAbstractDelegate) //if there is no other delegate running {