mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-26 16:25:23 -04:00
Correct tr-calls.
This commit is contained in:
parent
e776de8eeb
commit
c806f9ebf4
3 changed files with 7 additions and 7 deletions
|
@ -117,8 +117,8 @@ void DatabaseOpenWidget::openDatabase()
|
||||||
Q_EMIT editFinished(true);
|
Q_EMIT editFinished(true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
MessageBox::warning(this, tr("Error"), tr("Unable to open the database.\n%1")
|
MessageBox::warning(this, tr("Error"), tr("Unable to open the database.").append("\n")
|
||||||
.arg(reader.errorString()));
|
.append(reader.errorString()));
|
||||||
m_ui->editPassword->clear();
|
m_ui->editPassword->clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -138,7 +138,7 @@ CompositeKey DatabaseOpenWidget::databaseKey()
|
||||||
QString keyFilename = m_ui->comboKeyFile->currentText();
|
QString keyFilename = m_ui->comboKeyFile->currentText();
|
||||||
QString errorMsg;
|
QString errorMsg;
|
||||||
if (!key.load(keyFilename, &errorMsg)) {
|
if (!key.load(keyFilename, &errorMsg)) {
|
||||||
MessageBox::warning(this, tr("Error"), tr("Can't open key file:\n%1").arg(errorMsg));
|
MessageBox::warning(this, tr("Error"), tr("Can't open key file").append(":\n").append(errorMsg));
|
||||||
return CompositeKey();
|
return CompositeKey();
|
||||||
}
|
}
|
||||||
masterKey.addKey(key);
|
masterKey.addKey(key);
|
||||||
|
|
|
@ -64,8 +64,8 @@ void KeePass1OpenWidget::openDatabase()
|
||||||
Q_EMIT editFinished(true);
|
Q_EMIT editFinished(true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
MessageBox::warning(this, tr("Error"), tr("Unable to open the database.\n%1")
|
MessageBox::warning(this, tr("Error"), tr("Unable to open the database.").append("\n")
|
||||||
.arg(reader.errorString()));
|
.append(reader.errorString()));
|
||||||
m_ui->editPassword->clear();
|
m_ui->editPassword->clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -590,14 +590,14 @@ void EditEntryWidget::insertAttachment()
|
||||||
QFile file(filename);
|
QFile file(filename);
|
||||||
if (!file.open(QIODevice::ReadOnly)) {
|
if (!file.open(QIODevice::ReadOnly)) {
|
||||||
MessageBox::warning(this, tr("Error"),
|
MessageBox::warning(this, tr("Error"),
|
||||||
tr("Unable to open file:\n").append(file.errorString()));
|
tr("Unable to open file").append(":\n").append(file.errorString()));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
QByteArray data;
|
QByteArray data;
|
||||||
if (!Tools::readAllFromDevice(&file, data)) {
|
if (!Tools::readAllFromDevice(&file, data)) {
|
||||||
MessageBox::warning(this, tr("Error"),
|
MessageBox::warning(this, tr("Error"),
|
||||||
tr("Unable to open file:\n").append(file.errorString()));
|
tr("Unable to open file").append(":\n").append(file.errorString()));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue