[Bug 226314] New: Impossibility of KConfigGroup::readEntry to evaluate to false in boolean context
Holger Müller
holger.mueller at dass-it.de
Thu Feb 11 13:21:02 GMT 2010
https://bugs.kde.org/show_bug.cgi?id=226314
Summary: Impossibility of KConfigGroup::readEntry to evaluate
to false in boolean context
Product: kde
Version: unspecified
Platform: openSUSE RPMs
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: unassigned-bugs at kde.org
ReportedBy: holger.mueller at dass-it.de
Version: (using KDE 4.3.5)
OS: Linux
Installed from: openSUSE RPMs
It seems that is is impossible to get a false value
if KConfigGroup::readEntry is called in boolean context and
shell expansion is used.
I've set $foo to "false" in environment and set NoDisplay[$e]=$foo
in a test Desktopfile
const KConfigGroup group = kdf.group("Desktop Entry");
qDebug() << "readEntry ( \"NoDisplay\", true ): " <<
group.readEntry("NoDisplay", true);
qDebug() << "readEntry ( \"NoDisplay\", false ): " <<
group.readEntry("NoDisplay", false);
qDebug() << "readEntry ( \"NoDisplay\", \"false\" ): " <<
group.readEntry("NoDisplay", "false");
readEntry ( "NoDisplay", true ): true
readEntry ( "NoDisplay", false ): true
readEntry ( "NoDisplay", "false" ): "false"
So it seems impossible to use the expand feature for boolean values.
I consider this as a bug.
See also bug entry 225255
Regards Holger
--
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 Unassigned-bugs
mailing list