Corrected use of canonicalfile info in autoopen code

This commit is contained in:
Jonathan White 2017-12-07 22:40:37 -05:00
parent a80d1bbd2b
commit 36e5377e6a

View file

@ -543,8 +543,7 @@ void DatabaseTabWidget::updateTabNameFromDbWidgetSender()
Group *autoload = db->rootGroup()->findChildByName("AutoOpen"); Group *autoload = db->rootGroup()->findChildByName("AutoOpen");
if (autoload) { if (autoload) {
const DatabaseManagerStruct& dbStruct = m_dbList.value(db); const DatabaseManagerStruct& dbStruct = m_dbList.value(db);
QFileInfo dbpath(dbStruct.canonicalFilePath); QDir dbFolder(dbStruct.fileInfo.canonicalPath());
QDir dbFolder(dbpath.canonicalPath());
for (auto entry : autoload->entries()) { for (auto entry : autoload->entries()) {
if (entry->url().isEmpty() || entry->password().isEmpty()) { if (entry->url().isEmpty() || entry->password().isEmpty()) {
continue; continue;