mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-06 16:45:15 -04:00
parent
ba3baf3595
commit
f0985ff9d9
5 changed files with 22 additions and 0 deletions
|
@ -226,6 +226,9 @@ bool DatabaseTabWidget::closeDatabase(Database* db)
|
|||
void DatabaseTabWidget::deleteDatabase(Database* db)
|
||||
{
|
||||
const DatabaseManagerStruct dbStruct = m_dbList.value(db);
|
||||
bool emitDatabaseWithFileClosed = dbStruct.saveToFilename;
|
||||
QString filePath = dbStruct.filePath;
|
||||
|
||||
int index = databaseIndex(db);
|
||||
|
||||
removeTab(index);
|
||||
|
@ -233,6 +236,10 @@ void DatabaseTabWidget::deleteDatabase(Database* db)
|
|||
m_dbList.remove(db);
|
||||
delete dbStruct.dbWidget;
|
||||
delete db;
|
||||
|
||||
if (emitDatabaseWithFileClosed) {
|
||||
Q_EMIT databaseWithFileClosed(filePath);
|
||||
}
|
||||
}
|
||||
|
||||
bool DatabaseTabWidget::closeAllDatabases()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue