Commit f2d2a6c6 authored by Nikita Baryshnikov's avatar Nikita Baryshnikov

ProjectExplorer.Kit: do not warn if icon path is empty

Change-Id: I0dff382a1b80c511a72667839bca429114f4a279
Reviewed-by: Alessandro Portale's avatarAlessandro Portale <alessandro.portale@qt.io>
parent c128731f
......@@ -381,7 +381,7 @@ QIcon Kit::icon() const
if (!d->m_cachedIcon.isNull())
return d->m_cachedIcon;
if (d->m_iconPath.exists()) {
if (!d->m_iconPath.isEmpty() && d->m_iconPath.exists()) {
d->m_cachedIcon = QIcon(d->m_iconPath.toString());
return d->m_cachedIcon;
}
......
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