Pass database locked/unlocked status even with Search All Databases option enabled

This commit is contained in:
varjolintu 2022-06-05 17:11:34 +03:00 committed by Jonathan White
parent 6f619271c4
commit d1d191e2b0

View File

@ -1428,8 +1428,7 @@ void BrowserService::databaseUnlocked(DatabaseWidget* dbWidget)
void BrowserService::activeDatabaseChanged(DatabaseWidget* dbWidget)
{
// Only emit these signals when we are not searching in all databases
if (dbWidget && !browserSettings()->searchInAllDatabases()) {
if (dbWidget) {
if (dbWidget->isLocked()) {
databaseLocked(dbWidget);
} else {