mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-06 14:07:38 +03:00
Unlocked tray icon #37
This commit is contained in:
parent
5bb27b2989
commit
3bbf11e26f
9 changed files with 43 additions and 2 deletions
|
@ -610,6 +610,7 @@ void DatabaseTabWidget::insertDatabase(Database* db, const DatabaseManagerStruct
|
|||
connect(dbStruct.dbWidget, SIGNAL(closeRequest()), SLOT(closeDatabaseFromSender()));
|
||||
connect(dbStruct.dbWidget, SIGNAL(databaseChanged(Database*)), SLOT(changeDatabase(Database*)));
|
||||
connect(dbStruct.dbWidget, SIGNAL(unlockedDatabase()), SLOT(updateTabNameFromDbWidgetSender()));
|
||||
connect(dbStruct.dbWidget, SIGNAL(unlockedDatabase()), SLOT(emitDatabaseUnlockedFromDbWidgetSender()));
|
||||
}
|
||||
|
||||
DatabaseWidget* DatabaseTabWidget::currentDatabaseWidget()
|
||||
|
@ -706,6 +707,8 @@ void DatabaseTabWidget::lockDatabases()
|
|||
dbWidget->lock();
|
||||
// database has changed so we can't use the db variable anymore
|
||||
updateTabName(dbWidget->database());
|
||||
|
||||
Q_EMIT databaseLocked(dbWidget);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -764,6 +767,11 @@ void DatabaseTabWidget::emitActivateDatabaseChanged()
|
|||
Q_EMIT activateDatabaseChanged(currentDatabaseWidget());
|
||||
}
|
||||
|
||||
void DatabaseTabWidget::emitDatabaseUnlockedFromDbWidgetSender()
|
||||
{
|
||||
Q_EMIT databaseUnlocked(static_cast<DatabaseWidget*>(sender()));
|
||||
}
|
||||
|
||||
void DatabaseTabWidget::connectDatabase(Database* newDb, Database* oldDb)
|
||||
{
|
||||
if (oldDb) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue