Fix AutoOpen with key file only databases

* Fixes #3931
This commit is contained in:
Jonathan White 2019-12-31 12:30:05 -05:00
parent 87af012a97
commit 9ab531473a

View File

@ -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;