PackageInstaller: Handle aborting the file panel
* Select the first item and reset the path.
This commit is contained in:
@@ -279,6 +279,17 @@ PackageView::MessageReceived(BMessage* message)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case B_CANCEL:
|
||||||
|
{
|
||||||
|
// File panel aborted, select first item
|
||||||
|
BMenuItem* item = fDestination->ItemAt(0);
|
||||||
|
if (item != NULL && item->Message() != NULL) {
|
||||||
|
item->SetMarked(true);
|
||||||
|
Window()->PostMessage(item->Message(), this);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case B_SIMPLE_DATA:
|
case B_SIMPLE_DATA:
|
||||||
if (message->WasDropped()) {
|
if (message->WasDropped()) {
|
||||||
uint32 type;
|
uint32 type;
|
||||||
|
|||||||
Reference in New Issue
Block a user