mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-29 09:38:48 -04:00
Handle entry/group title with %1 etc. correctly.
This commit is contained in:
parent
64394c0b15
commit
848abfc1a7
1 changed files with 3 additions and 10 deletions
|
@ -258,21 +258,14 @@ void EditEntryWidget::loadEntry(Entry* entry, bool create, bool history, const Q
|
||||||
m_history = history;
|
m_history = history;
|
||||||
|
|
||||||
if (history) {
|
if (history) {
|
||||||
setHeadline(QString("%1 > %2")
|
setHeadline(QString("%1 > %2").arg(parentName, tr("Entry history")));
|
||||||
.arg(parentName)
|
|
||||||
.arg(tr("Entry history")));
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (create) {
|
if (create) {
|
||||||
setHeadline(QString("%1 > %2")
|
setHeadline(QString("%1 > %2").arg(parentName, tr("Add entry")));
|
||||||
.arg(parentName)
|
|
||||||
.arg(tr("Add entry")));
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
setHeadline(QString("%1 > %2 > %3")
|
setHeadline(QString("%1 > %2 > %3").arg(parentName, entry->title(), tr("Edit entry")));
|
||||||
.arg(parentName)
|
|
||||||
.arg(entry->title())
|
|
||||||
.arg(tr("Edit entry")));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue