From 56dece56e78f5d3f509775e9ce56ce1064c844f0 Mon Sep 17 00:00:00 2001 From: Anne Jan Brouwer Date: Sat, 19 Nov 2016 19:29:08 +0100 Subject: Show path to password not file.gpg, renamed passwordName --- mainwindow.cpp | 4 ++-- mainwindow.ui | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index f731f023..15096693 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -686,7 +686,7 @@ void MainWindow::on_treeView_clicked(const QModelIndex &index) { QString file = getFile(index, usePass); QFileInfo fileinfo = model.fileInfo(proxyModel.mapToSource(ui->treeView->currentIndex())); - ui->Passwordname->setText(fileinfo.fileName()); + ui->passwordName->setText(getFile(index, true)); if (!file.isEmpty() && !cleared) { currentAction = GPG; if (usePass) @@ -731,7 +731,7 @@ void MainWindow::on_treeView_doubleClicked(const QModelIndex &index) { void MainWindow::deselect() { currentDir = "/"; copyTextToClipboard(""); - ui->Passwordname->setText(""); + ui->passwordName->setText(""); clearPanel(); } diff --git a/mainwindow.ui b/mainwindow.ui index 37fbc11c..2f532314 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -293,7 +293,7 @@ 7 - + 0 -- cgit v1.2.3