it's working! removed my null pointer and just get it from the dependency manager when required

This commit is contained in:
Liv Erickson 2018-01-29 10:20:16 -08:00
parent 20635acf27
commit 0e3a01f1e8
2 changed files with 2 additions and 5 deletions

View file

@ -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);
}
}

View file

@ -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();