1
0
Fork 0

Fix a glitch in adding the default catalog

This commit is contained in:
Automatic Release Builder 2020-11-11 21:33:03 +00:00 committed by James Turner
parent 1583ad3b03
commit 21e6c06a0c

View file

@ -201,9 +201,9 @@ void CatalogListModel::refreshCatalog(int index)
void CatalogListModel::installDefaultCatalog(bool showAddFeedback)
{
FGHTTPClient* http = globals->get_subsystem<FGHTTPClient>();
auto cat = Catalog::createFromUrl(m_packageRoot, http->getDefaultCatalogUrl());
CatalogRef cat = Catalog::createFromUrl(m_packageRoot, http->getDefaultCatalogUrl());
if (showAddFeedback) {
cat = m_newlyAddedCatalog;
m_newlyAddedCatalog = cat;
emit isAddingCatalogChanged();
emit statusOfAddingCatalogChanged();
}