mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-04 21:17:43 +03:00
Choose database for saving or updating entries from KeePassXC-Browser (#2391)
This commit is contained in:
parent
bb16dc6d01
commit
b8d2d5d877
13 changed files with 307 additions and 22 deletions
|
@ -555,6 +555,7 @@ void DatabaseTabWidget::updateTabName(Database* db)
|
|||
const DatabaseManagerStruct& dbStruct = m_dbList.value(db);
|
||||
|
||||
QString tabName;
|
||||
QString fileName;
|
||||
|
||||
if (dbStruct.fileInfo.exists()) {
|
||||
if (db->metadata()->name().isEmpty()) {
|
||||
|
@ -563,6 +564,7 @@ void DatabaseTabWidget::updateTabName(Database* db)
|
|||
tabName = db->metadata()->name();
|
||||
}
|
||||
|
||||
fileName = dbStruct.fileInfo.fileName();
|
||||
setTabToolTip(index, dbStruct.fileInfo.absoluteFilePath());
|
||||
} else {
|
||||
if (db->metadata()->name().isEmpty()) {
|
||||
|
@ -580,6 +582,9 @@ void DatabaseTabWidget::updateTabName(Database* db)
|
|||
tabName.append("*");
|
||||
}
|
||||
|
||||
dbStruct.dbWidget->setDatabaseName(tabName);
|
||||
dbStruct.dbWidget->setDatabaseFileName(fileName);
|
||||
|
||||
setTabText(index, tabName);
|
||||
emit tabNameChanged();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue