mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 15:30:11 +02:00
Merge pull request #15019 from AndrewMeadows/fix-crash-after-avatar-upload
Case 21422: fix crash for nullptr deref when looking at recently uploaded avatar in inventory
This commit is contained in:
commit
1084e79a2e
1 changed files with 6 additions and 2 deletions
|
@ -254,11 +254,15 @@ void AvatarProject::openInInventory() const {
|
|||
DependencyManager::get<TabletScriptingInterface>()->getTablet("com.highfidelity.interface.tablet.system"));
|
||||
tablet->loadQMLSource("hifi/commerce/wallet/Wallet.qml");
|
||||
DependencyManager::get<HMDScriptingInterface>()->openTablet();
|
||||
tablet->getTabletRoot()->forceActiveFocus();
|
||||
auto name = getProjectName();
|
||||
|
||||
// I'm not a fan of this, but it's the only current option.
|
||||
auto name = getProjectName();
|
||||
QTimer::singleShot(TIME_TO_WAIT_FOR_INVENTORY_TO_OPEN_MS, [name, tablet]() {
|
||||
tablet->sendToQml(QVariantMap({ { "method", "updatePurchases" }, { "filterText", name } }));
|
||||
});
|
||||
|
||||
QQuickItem* root = tablet->getTabletRoot();
|
||||
if (root) {
|
||||
root->forceActiveFocus();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue