* @brief MainWindow::on_treeView_doubleClicked when doubleclicked on * TreeViewItem, open the edit Window * @param index */
| 402 | * @param index |
| 403 | */ |
| 404 | void MainWindow::on_treeView_doubleClicked(const QModelIndex &index) { |
| 405 | QFileInfo fileOrFolder = |
| 406 | model.fileInfo(proxyModel.mapToSource(ui->treeView->currentIndex())); |
| 407 | |
| 408 | if (fileOrFolder.isFile()) { |
| 409 | editPassword(getFile(index, true)); |
| 410 | } |
| 411 | } |
| 412 | |
| 413 | /** |
| 414 | * @brief MainWindow::deselect clear the selection, password and copy buffer |
nothing calls this directly
no outgoing calls
no test coverage detected