Don't crash, at least

This commit is contained in:
Lirusaito
2019-03-03 21:21:49 -05:00
parent 5e5dafac26
commit b6e36275bb

View File

@@ -545,7 +545,7 @@ void LLFloaterMarketplaceListings::updateView()
{
// Just show the loading indicator in that case and fetch the data (fetch will be skipped if it's already loading)
mInventoryInitializationInProgress->setVisible(true);
mPanelListings->setVisible(FALSE);
if (mPanelListings) mPanelListings->setVisible(FALSE);
fetchContents();
return;
}
@@ -562,12 +562,12 @@ void LLFloaterMarketplaceListings::updateView()
// We need to rebuild the tabs cleanly the first time we make them visible
setPanels();
}
mPanelListings->setVisible(TRUE);
if (mPanelListings) mPanelListings->setVisible(TRUE);
mInventoryPlaceholder->setVisible(FALSE);
}
else
{
mPanelListings->setVisible(FALSE);
if (mPanelListings) mPanelListings->setVisible(FALSE);
mInventoryPlaceholder->setVisible(TRUE);
std::string text;