bluetooth/preflet: Fix x86_64 build
This commit is contained in:
@@ -304,7 +304,7 @@ BluetoothSettingsView::_BuildLocalDevicesMenu()
|
|||||||
fLocalDevicesMenu = new BPopUpMenu(B_TRANSLATE("Pick device..."));
|
fLocalDevicesMenu = new BPopUpMenu(B_TRANSLATE("Pick device..."));
|
||||||
|
|
||||||
while (fLocalDevicesMenu->CountItems() > 0) {
|
while (fLocalDevicesMenu->CountItems() > 0) {
|
||||||
BMenuItem* item = fLocalDevicesMenu->RemoveItem(0L);
|
BMenuItem* item = fLocalDevicesMenu->RemoveItem(0);
|
||||||
|
|
||||||
if (item != NULL) {
|
if (item != NULL) {
|
||||||
delete item;
|
delete item;
|
||||||
|
|||||||
@@ -121,14 +121,15 @@ RemoteDevicesView::MessageReceived(BMessage* message)
|
|||||||
switch (message->what) {
|
switch (message->what) {
|
||||||
case kMsgAddDevices:
|
case kMsgAddDevices:
|
||||||
{
|
{
|
||||||
InquiryPanel* inquiryPanel = new InquiryPanel(BRect(100, 100, 450, 450),
|
InquiryPanel* inquiryPanel= new InquiryPanel(
|
||||||
ActiveLocalDevice);
|
BRect(100, 100, 450, 450), ActiveLocalDevice);
|
||||||
inquiryPanel->Show();
|
inquiryPanel->Show();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case kMsgRemoveDevice:
|
case kMsgRemoveDevice:
|
||||||
printf("kMsgRemoveDevice: %ld\n", fDeviceList->CurrentSelection(0));
|
printf("kMsgRemoveDevice: %" B_PRId32 "\n",
|
||||||
|
fDeviceList->CurrentSelection(0));
|
||||||
fDeviceList->RemoveItem(fDeviceList->CurrentSelection(0));
|
fDeviceList->RemoveItem(fDeviceList->CurrentSelection(0));
|
||||||
break;
|
break;
|
||||||
case kMsgAddToRemoteList:
|
case kMsgAddToRemoteList:
|
||||||
|
|||||||
Reference in New Issue
Block a user