[Digikam-devel] [Bug 237565] Digikam crash when unchecking KIPI external modules
Gilles Caulier
caulier.gilles at gmail.com
Thu Jul 1 13:14:23 BST 2010
https://bugs.kde.org/show_bug.cgi?id=237565
--- Comment #23 from Gilles Caulier <caulier gilles gmail com> 2010-07-01 14:14:14 ---
SVN commit 1144959 by cgilles:
more check there
M +9 -2 pluginloader.cpp
--- trunk/KDE/kdegraphics/libs/libkipi/libkipi/pluginloader.cpp
#1144958:1144959
@@ -168,10 +168,17 @@
QIcon PluginLoader::Info::icon() const
{
if(d->m_service->icon().isEmpty() && d->m_plugin)
- return QIcon(d->m_plugin->actions()[0]->icon());
+ {
+ if (d->m_plugin->actions()[0])
+ return d->m_plugin->actions()[0]->icon();
else
- return KIcon(d->m_service->icon());
+ return QIcon();
}
+ else
+ {
+ return QIcon(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