Commit fad3e567 authored by Dennis Nienhüser's avatar Dennis Nienhüser

Don't forget to cache the loaded icon

parent 3fb2586f
......@@ -194,7 +194,8 @@ QImage GeoDataIconStyle::icon() const
return d->m_icon;
}
else if ( !d->m_iconPath.isEmpty() ) {
return d->loadIcon(resolvePath(d->m_iconPath), d->m_size);
d->m_icon = d->loadIcon(resolvePath(d->m_iconPath), d->m_size);
return d->m_icon;
}
else
return QImage();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment