From 9ab531473afb36081d5b71c038d3a3ab464afa8f Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Tue, 31 Dec 2019 12:30:05 -0500 Subject: [PATCH] Fix AutoOpen with key file only databases * Fixes #3931 --- src/gui/DatabaseWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp index 5c4bf39a..e7b6179f 100644 --- a/src/gui/DatabaseWidget.cpp +++ b/src/gui/DatabaseWidget.cpp @@ -1770,7 +1770,7 @@ void DatabaseWidget::processAutoOpen() } for (const auto* entry : autoopenGroup->entries()) { - if (entry->url().isEmpty() || entry->password().isEmpty()) { + if (entry->url().isEmpty() || (entry->password().isEmpty() && entry->username().isEmpty())) { continue; } QFileInfo filepath;