[Digikam-devel] [Bug 237565] Digikam crash when unchecking KIPI external modules
Gilles Caulier
caulier.gilles at gmail.com
Tue May 25 07:54:55 BST 2010
https://bugs.kde.org/show_bug.cgi?id=237565
--- Comment #17 from Gilles Caulier <caulier gilles gmail com> 2010-05-25 08:54:50 ---
SVN commit 1130288 by apol:
Make the service icon to be the the default icon for the plugin and use the
first action as a fallback (in case we have one).
CCMAIL: caulier.gilles at gmail.com
M +4 -2 pluginloader.cpp
--- trunk/KDE/kdegraphics/libs/libkipi/libkipi/pluginloader.cpp
#1130287:1130288
@@ -167,8 +167,10 @@
QIcon PluginLoader::Info::icon() const
{
- if (d->m_plugin) return QIcon(d->m_plugin->actions()[0]->icon());
- else return KIcon(d->m_service->icon());
+ if(d->m_service->icon().isEmpty() && d->m_plugin)
+ return QIcon(d->m_plugin->actions()[0]->icon());
+ else
+ return KIcon(d->m_service->icon());
}
Plugin* PluginLoader::Info::plugin() const
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Digikam-devel
mailing list