Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.1:Update
libdbusmenu-qt
237_236.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 237_236.diff of Package libdbusmenu-qt
=== modified file 'src/dbusmenuexporter.cpp' --- src/dbusmenuexporter.cpp 2012-04-10 15:18:15 +0000 +++ src/dbusmenuexporter.cpp 2012-10-24 14:43:10 +0000 @@ -233,19 +233,20 @@ void DBusMenuExporterPrivate::insertIconProperty(QVariantMap *map, QAction *action) const { - QString iconName = q->iconNameForAction(action); + // provide the icon name for per-theme lookups + const QString iconName = q->iconNameForAction(action); if (!iconName.isEmpty()) { map->insert("icon-name", iconName); - return; - } - QIcon icon = action->icon(); - if (icon.isNull()) { - return; } - QBuffer buffer; - icon.pixmap(16).save(&buffer, "PNG"); - map->insert("icon-data", buffer.data()); + // provide the serialized icon data in case the icon + // is unnamed or the name isn't supported by the theme + const QIcon icon = action->icon(); + if (!icon.isNull()) { + QBuffer buffer; + icon.pixmap(16).save(&buffer, "PNG"); + map->insert("icon-data", buffer.data()); + } } static void collapseSeparator(QAction* action)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor