| 6384 | } |
| 6385 | |
| 6386 | void Key_LaunchExplorerWithFileSelected() |
| 6387 | { |
| 6388 | if (sel->getBumpObjects().size() != 1) |
| 6389 | return; |
| 6390 | |
| 6391 | // get the selected object |
| 6392 | BumpObject * obj = sel->getBumpObjects().front(); |
| 6393 | if (!obj->isObjectType(ObjectType(BumpActor, FileSystem))) |
| 6394 | return; |
| 6395 | |
| 6396 | FileSystemActor * actor = (FileSystemActor *) obj; |
| 6397 | QString path = actor->getFullPath(); |
| 6398 | LPITEMIDLIST parentPidl = winOS->GetAbsolutePidlFromAbsFilePath(native(parent(path))); |
| 6399 | LPCITEMIDLIST pidl = winOS->GetRelativePidlFromAbsFilePath(path); |
| 6400 | |
| 6401 | if (actor->isFileSystemType(Virtual)) |
| 6402 | { |
| 6403 | parentPidl = winOS->GetPidlFromName(Desktop); |
| 6404 | pidl = winOS->GetPidlFromName(winOS->GetIconTypeFromFileName(path)); |
| 6405 | } |
| 6406 | |
| 6407 | SHOpenFolderAndSelectItems(parentPidl, 1, &pidl, 0); |
| 6408 | } |
| 6409 | |
| 6410 | void Key_LaunchExplorerWindowOnWorkingDirectory() |
| 6411 | { |
nothing calls this directly
no test coverage detected