fix cli commands, translations and codestyle

This commit is contained in:
thez3ro 2018-02-06 01:17:36 +01:00
parent 6723f4215a
commit 1bfbb9242c
No known key found for this signature in database
GPG key ID: F628F9E41DD7C073
30 changed files with 70 additions and 67 deletions

View file

@ -31,15 +31,15 @@
Add::Add()
{
this->name = QString("add");
this->description = QObject::tr("Add a new entry to a database.");
name = QString("add");
description = QObject::tr("Add a new entry to a database.");
}
Add::~Add()
{
}
int Add::execute(QStringList arguments)
int Add::execute(const QStringList& arguments)
{
QTextStream inputTextStream(stdin, QIODevice::ReadOnly);
@ -134,6 +134,7 @@ int Add::execute(QStringList arguments)
}
passwordGenerator.setCharClasses(PasswordGenerator::DefaultCharset);
passwordGenerator.setFlags(PasswordGenerator::DefaultFlags);
QString password = passwordGenerator.generatePassword();
entry->setPassword(password);
}