| 187 | |
| 188 | |
| 189 | void EntryTreeView::entryDoubleClicked(const QModelIndex& cur) |
| 190 | { |
| 191 | FunctionRef func = m_model->getEntry(cur); |
| 192 | if (func) |
| 193 | { |
| 194 | ViewFrame* viewFrame = ViewFrame::viewFrameForWidget(this); |
| 195 | if (viewFrame) |
| 196 | { |
| 197 | if (BinaryNinja::Settings::Instance()->Get<bool>("ui.view.graph.preferred") && |
| 198 | viewFrame->getCurrentBinaryView() && |
| 199 | func->GetStart() > 0) |
| 200 | { |
| 201 | viewFrame->navigate("Graph:" + viewFrame->getCurrentDataType(), func->GetStart()); |
| 202 | } |
| 203 | else |
| 204 | { |
| 205 | viewFrame->navigate("Linear:" + viewFrame->getCurrentDataType(), func->GetStart()); |
| 206 | } |
| 207 | } |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | |
| 212 | void EntryTreeView::setFilter(const std::string& filterText) |