| 202 | } |
| 203 | |
| 204 | void FileTree::openHooked(FileTreeItem* item) |
| 205 | { |
| 206 | if (!item) { |
| 207 | item = singleSelection(); |
| 208 | |
| 209 | if (!item) { |
| 210 | return; |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | if (item->isFromArchive() || item->isDirectory()) { |
| 215 | return; |
| 216 | } |
| 217 | |
| 218 | const QString path = item->realPath(); |
| 219 | const QFileInfo targetInfo(path); |
| 220 | |
| 221 | m_core.processRunner() |
| 222 | .setFromFile(m_tree->window(), targetInfo) |
| 223 | .setHooked(true) |
| 224 | .setWaitForCompletion(ProcessRunner::TriggerRefresh) |
| 225 | .run(); |
| 226 | } |
| 227 | |
| 228 | void FileTree::preview(FileTreeItem* item) |
| 229 | { |
nothing calls this directly
no test coverage detected