Summary: | apper update applet says "unknown role unknown state" | ||
---|---|---|---|
Product: | [Applications] apper | Reporter: | John Andrew McInnes <s2> |
Component: | general | Assignee: | Daniel Nicoletti <dantti12> |
Status: | RESOLVED FIXED | ||
Severity: | minor | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
URL: | https://bugzilla.opensuse.org/show_bug.cgi?id=908194 | ||
Latest Commit: | http://commits.kde.org/apper/4fb5409e8304e01d536fb03df4a1001879ec3574 | Version Fixed In: |
Description
John Andrew McInnes
2015-02-27 20:43:32 UTC
Git commit 4fb5409e8304e01d536fb03df4a1001879ec3574 by Wolfgang Bauer. Committed on 27/03/2015 at 15:28. Pushed by wbauer into branch 'master'. Fix display of status/role messages in the plasmoid The QML plasmoid calls a C++ function to get the message strings for the current status/role. But due to a limitation in Qt4, Enum parameters can only be used when the Enum is defined in the same class as the C++ function, which is not the case here (the Enums come from PackageKit). See also https://bugreports.qt.io/browse/QTBUG-19741 So the functions always get passed 0, which means "Unknown", and the plasmoid always displays "Unknown state"/"Unknown role type". This patch overloads the necessary functions to accept int parameters as well to fix this. REVIEW: 123150 M +10 -0 libapper/PkStrings.cpp M +3 -0 libapper/PkStrings.h http://commits.kde.org/apper/4fb5409e8304e01d536fb03df4a1001879ec3574 |