mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
fix crash for null pointer
This commit is contained in:
parent
3e43859139
commit
c106f4c3a0
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ public:
|
||||||
|
|
||||||
void setResource(GeometryResource::Pointer resource);
|
void setResource(GeometryResource::Pointer resource);
|
||||||
|
|
||||||
const QUrl& getURL() const { return _resource->getURL(); }
|
QUrl GeometryResourceWatcher::getURL() const { return (bool)_resource ? _resource->getURL() : QUrl(); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void startWatching();
|
void startWatching();
|
||||||
|
|
Loading…
Reference in a new issue