mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 22:29:24 +02:00
it's working! removed my null pointer and just get it from the dependency manager when required
This commit is contained in:
parent
20635acf27
commit
0e3a01f1e8
2 changed files with 2 additions and 5 deletions
|
@ -16,7 +16,6 @@ CheckoutProxy::CheckoutProxy(QObject* qmlObject, QObject* parent) : QmlWrapper(q
|
|||
}
|
||||
|
||||
WalletScriptingInterface::WalletScriptingInterface() {
|
||||
_contextOverlayInterface = DependencyManager::get<ContextOverlayInterface>();
|
||||
|
||||
_entityPropertyFlags += PROP_POSITION;
|
||||
_entityPropertyFlags += PROP_ROTATION;
|
||||
|
@ -43,9 +42,9 @@ void WalletScriptingInterface::proveAvatarEntityOwnershipVerification(const QUui
|
|||
if (!entityID.isNull() && entityProperties.getMarketplaceID().length() > 0) {
|
||||
if (!entityProperties.getClientOnly()) {
|
||||
qCDebug(entities) << "Failed to prove ownership of:" << entityID << "is not an avatar entity";
|
||||
emit _contextOverlayInterface->ownershipVerificationFailed(entityID);
|
||||
emit DependencyManager::get<ContextOverlayInterface>()->ownershipVerificationFailed(entityID);
|
||||
return;
|
||||
}
|
||||
_contextOverlayInterface->requestOwnershipVerification(entityID);
|
||||
DependencyManager::get<ContextOverlayInterface>()->requestOwnershipVerification(entityID);
|
||||
}
|
||||
}
|
|
@ -34,8 +34,6 @@ class WalletScriptingInterface : public QObject, public Dependency {
|
|||
Q_OBJECT
|
||||
|
||||
Q_PROPERTY(uint walletStatus READ getWalletStatus WRITE setWalletStatus NOTIFY walletStatusChanged)
|
||||
QSharedPointer<ContextOverlayInterface> _contextOverlayInterface;
|
||||
|
||||
|
||||
public:
|
||||
WalletScriptingInterface();
|
||||
|
|
Loading…
Reference in a new issue