diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2016-11-19 19:29:08 +0100 |
---|---|---|
committer | Anne Jan Brouwer <brouwer@annejan.com> | 2016-11-19 19:29:08 +0100 |
commit | 56dece56e78f5d3f509775e9ce56ce1064c844f0 (patch) | |
tree | 71f748150d7b9653fe04f22eace7577135bcad23 | |
parent | 76d2a34e744fd54d796bef16d097d768adff4c69 (diff) |
Show path to password not file.gpg, renamed passwordName
-rw-r--r-- | mainwindow.cpp | 4 | ||||
-rw-r--r-- | 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 @@ <number>7</number> </property> <item> - <widget class="QLabel" name="Passwordname"> + <widget class="QLabel" name="passwordName"> <property name="sizePolicy"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <horstretch>0</horstretch> |