PackageInstaller: Handle aborting the file panel

* Select the first item and reset the path.
This commit is contained in:
Stephan Aßmus
2014-02-18 22:57:24 +01:00
parent bb322d3500
commit 1e35b8fc96
+11
View File
@@ -279,6 +279,17 @@ PackageView::MessageReceived(BMessage* message)
}
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:
if (message->WasDropped()) {
uint32 type;