Fix a glitch in adding the default catalog
This commit is contained in:
parent
1583ad3b03
commit
21e6c06a0c
1 changed files with 2 additions and 2 deletions
|
@ -201,9 +201,9 @@ void CatalogListModel::refreshCatalog(int index)
|
||||||
void CatalogListModel::installDefaultCatalog(bool showAddFeedback)
|
void CatalogListModel::installDefaultCatalog(bool showAddFeedback)
|
||||||
{
|
{
|
||||||
FGHTTPClient* http = globals->get_subsystem<FGHTTPClient>();
|
FGHTTPClient* http = globals->get_subsystem<FGHTTPClient>();
|
||||||
auto cat = Catalog::createFromUrl(m_packageRoot, http->getDefaultCatalogUrl());
|
CatalogRef cat = Catalog::createFromUrl(m_packageRoot, http->getDefaultCatalogUrl());
|
||||||
if (showAddFeedback) {
|
if (showAddFeedback) {
|
||||||
cat = m_newlyAddedCatalog;
|
m_newlyAddedCatalog = cat;
|
||||||
emit isAddingCatalogChanged();
|
emit isAddingCatalogChanged();
|
||||||
emit statusOfAddingCatalogChanged();
|
emit statusOfAddingCatalogChanged();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue