Skip to content

Commit

Permalink
Adding trailing newline to password file, fixes #93
Browse files Browse the repository at this point in the history
  • Loading branch information
Anne Jan Brouwer committed Sep 24, 2015
1 parent d4e4373 commit b0ade68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,10 @@ void MainWindow::setPassword(QString file, bool overwrite, bool isNew = false)
return;
}

if (newValue.right(1) != "\n") {
newValue += "\n";
}

currentAction = EDIT;
if (usePass) {
QString force(overwrite ? " -f " : " ");
Expand Down

0 comments on commit b0ade68

Please sign in to comment.