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");
if (autoload) {
const DatabaseManagerStruct& dbStruct = m_dbList.value(db);
QFileInfo dbpath(dbStruct.canonicalFilePath);
QDir dbFolder(dbpath.canonicalPath());
QDir dbFolder(dbStruct.fileInfo.canonicalPath());
for (auto entry : autoload->entries()) {
if (entry->url().isEmpty() || entry->password().isEmpty()) {
continue;