diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2015-06-11 01:27:01 +0200 |
---|---|---|
committer | Anne Jan Brouwer <annejan@noprotocol.com> | 2015-06-11 01:27:01 +0200 |
commit | 356015f8740cf4f87cfa5ae96bfa280f68b707e9 (patch) | |
tree | 9780c3dbe346734455bafba64b5d8251b3a0c7b5 /mainwindow.cpp | |
parent | 340b80302947c97948aeddaca0904fbf5adb8203 (diff) |
needs more love
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r-- | mainwindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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"; } |