diff options
author | Anne Jan Brouwer <annejan@noprotocol.com> | 2015-06-11 01:27:01 +0200 |
---|---|---|
committer | Anne Jan Brouwer <annejan@noprotocol.com> | 2015-06-11 01:27:01 +0200 |
commit | cb5b828f169301a4b2663740323d78ff35e42f7c (patch) | |
tree | 9780c3dbe346734455bafba64b5d8251b3a0c7b5 | |
parent | ccda0323fdf150a70c619c5782fee3ff7c6e08c9 (diff) |
needs more love
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | mainwindow.cpp | 5 |
2 files changed, 4 insertions, 3 deletions
@@ -53,7 +53,7 @@ Known issues Planned features ---------------- * Re-encryption after users-change (optional ofcourse) -* Showing path in Add and Edit screen (currently sometimes confusing where I'm adding this password) +* ~~Showing path in Add and Edit screen (currently sometimes confusing where I'm adding this password)~~ * Right click handlers for file/folder and content * ~~First use wizards to set up password-store (and decryption key, currently always the gpg default key)~~ * ~~Profiles (to allow use of multiple password stores and decryption keys) with dropdown in main screen~~ diff --git a/mainwindow.cpp b/mainwindow.cpp index 6b6a6745..e625808f 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -813,13 +813,14 @@ void MainWindow::setPassword(QString file, bool overwrite) void MainWindow::on_addButton_clicked() { bool ok; + QString dir = getDir(ui->treeView->currentIndex(), usePass); QString file = QInputDialog::getText(this, tr("New file"), - tr("New password file:"), QLineEdit::Normal, + tr("New password file, will be placed in folder %1:").arg(QDir::separator() + dir), QLineEdit::Normal, "", &ok); if (!ok || file.isEmpty()) { return; } - file = getDir(ui->treeView->currentIndex(), usePass) + file; + file = dir + file; if (!usePass) { file += ".gpg"; } |