if model-overlay has no name, use its url

This commit is contained in:
Seth Alves 2017-05-04 18:36:51 -07:00
parent 74a82f92df
commit c04c0c5b13

View file

@ -279,3 +279,10 @@ void ModelOverlay::locationChanged(bool tellPhysics) {
_model->setTranslation(getPosition());
}
}
QString ModelOverlay::getName() const {
if (_name != "") {
return QString("Overlay:") + getType() + ":" + _name;
}
return QString("Overlay:") + getType() + ":" + _url.toString();
}